outputsuse strict; use warnings; my $s="whatever your string looks like"; my @b = $s =~ /.{6}/g; push @b, substr($s, - (6 - int(length($s)/6) ) ); $\="\n"; print foreach @b;
whatev er you r stri ng loo ks lik e
In reply to Re: Breaking up a string?
by olus
in thread Breaking up a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |