in reply to Use SVN::Client to "cat" a file on svn

The characters \* are not part of the STDOUT name, and they are not there just for fun. They turn a bareword (no sigil) filehandle into a filehandle reference.
$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
    Thanks ! So I have to put in a file, I can't put in an array?
      You can open a filehandle that points to a variable:
      open my $FH, '>', \$output;
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ