Also:
c:\@Work\Perl\monks>perl -wMstrict -le "my $string = 'foobar'; ;; for my $offset (0 .. length($string) - 1) { printf qq{'%s' }, substr $string, $offset, 1; } " 'f' 'o' 'o' 'b' 'a' 'r'
Give a man a fish: <%-(-(-(-<
In reply to Re^2: iterating through scalar
by AnomalousMonk
in thread iterating through scalar
by yedukondalu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |