in reply to Perl formats without file handles

Hi

Is this what you expect for??
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;

These or found in perl manpages .

Thanks SasiKumar

Replies are listed 'Best First'.
Re^2: Perl formats without file handles
by m-rau (Scribe) on Feb 11, 2005 at 11:37 UTC
    Thanks! I read this. But I definetively missed the point.