SVK::Simple - Simple SVK object loader
my $output; my $svk = SVK::Simple->new(output => \$output); $svk->ls("//"); print $output;
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.
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:
new()
$svk
$svk->$cmd($params)
Where $cmd is one of those commands listed in svk help commands.
$cmd
svk help commands
That's all about this module, enjoy it.
SVK, svk
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>
To install SVK::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SVK::Simple
CPAN shell
perl -MCPAN -e shell install SVK::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.