劉康民 > SVK-Simple-0.03 > SVK::Simple

Download:
SVK-Simple-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

SVK::Simple - Simple SVK object loader

SYNOPSIS ^

    my $output;
    my $svk = SVK::Simple->new(output => \$output);

    $svk->ls("//");
    print $output;

DESCRIPTION ^

Although SVK.pm itself is already simple enough, there still are some misc requirements in the svk script which is not included in SVK.pm. This module helps people who wants to write some SVK applications. It provides a simple SVK object loader, so people will not have to handle XD initialization.

METHODS ^

new(output => SCALAR_REF)

This package provides only one method: new(), it takes an optional named parameter "output", which should be a scalarref. All the following SVK command output will be store in to that scalar. Please always initalized your $svk object as in SYNOPSIS. If "output" is not given, then all the outputs goes out to STDOUT. What is returned is an SVK object, you may perform svk commands like this:

    $svk->$cmd($params)

Where $cmd is one of those commands listed in svk help commands.

That's all about this module, enjoy it.

SEE ALSO ^

SVK, svk

COPYRIGHT ^

Copyright 2005-2007 by Kang-min Liu <gugod@gugod.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>

syntax highlighting: