in reply to Use SVN::Client to "cat" a file on svn
$ctx->cat(\*FILE, 'http://127.0.0.1/file.txt', 'HEAD');
You have to open the filehandle first, though:
open FILE, '>', 'file.txt.HEAD' or die $!;
Or, use lexical filehandles:
open my $FH, '>', 'file.txt.HEAD' or die $!; $ctx->cat($FH, 'http://127.0.0.1/file.txt', 'HEAD');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use SVN::Client to "cat" a file on svn
by fouinix (Initiate) on Feb 04, 2014 at 16:15 UTC | |
by choroba (Cardinal) on Feb 04, 2014 at 16:33 UTC |