[sf-perl] question about SVN::Client
richyen at iparadigms.com
Fri Jun 24 12:26:37 PDT 2011
Just looking for a little help on the SVN::Client module: http://search.cpan.org/~mlanier/Alien-SVN-184.108.40.206/src/subversion/subversion/bindings/swig/perl/native/Client.pm
The example in the synopsis shows $ctx->cat() with a filehandle reference to STDOUT. However, I'm looking to write a script that will just store the contents of the file in a scalar (eventually going to be an array). Any way to do this?
Tried $ctx->cat (my $scalar, 'http://svn/path/to/file', 'HEAD'), but that doesn't seem to do the trick.
I'd prefer not messing with the filesystem (i.e., writing files to disk, then having to clean up later). Basically, the file in the svn repository is a config file, so it really has no purpose on disk.
More information about the SanFrancisco-pm