and I could NEVER figure out how to use map
The usual use of map is
my @new = map { EXPR } @old;
It's equivalent to
my @new; foreach (@old) { push @new, EXPR; }
In reply to Re: loop through values in a string and print " " around each value.
by ikegami
in thread loop through values in a string and print " " around each value.
by kevyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |