in reply to sprintf vs formline
You probably should localize $^A:
sub foo { local $^A; my @lines = @_; my $printIt = "+-----------------------+\n"; foreach $line (@lines){ formline("| \@|||||||||||||||||||| |\n",$line); } $printIt .= $^A; $printIt .= "+-----------------------+\n"; return $printIt; }
See perlvar for more details.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: sprintf vs formline
by nmerriweather (Friar) on Sep 03, 2002 at 04:09 UTC | |
by demerphq (Chancellor) on Sep 03, 2002 at 11:35 UTC |