sub swrite { local $^A; formline( $_[0], @_[ 1 .. $#_ ] ); return $^A; } my $output = swrite(<<FORM, 1 .. 5 ); @<<<@|||@>>>@|||@<<< FORM print "format: $output", __output__ format: 1 2 3 4 5
_________
broquaint
In reply to Re: FORMATS, filehandle and variables
by broquaint
in thread FORMATS, filehandle and variables
by stew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |