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.
- 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
$svkobject 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:
$cmdis one of those commands listed in
svk help commands.
That's all about this module, enjoy it.
Copyright 2005-2007 by Kang-min Liu <firstname.lastname@example.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.