If that wasn't silly, this certainly won't be...foreach (@data) { print "$_"; print "\t"; } print "\b"; # backspace over the last tab
"Silly" is relative.my $string; foreach( @data ){ $string .= "$_\t"; } chop( $string ); # not chomp, but chop. print $string;
In reply to Re: looping idiom
by mrbbking
in thread looping idiom
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |