in reply to Perl formats without file handles
use Carp; sub swrite { croak "usage: swrite PICTURE ARGS" unless @_; my $format = shift; $^A = ""; formline($format,@_); return $^A; } $string = swrite(<<'END', 1, 2, 3); Check me out @<<< @||| @>>> END print $string;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl formats without file handles
by m-rau (Scribe) on Feb 11, 2005 at 11:37 UTC |