map is the way to do it:
my @arr = map uc, split(/:/, $info);
BTW,
isn't very Perlish. The Perl way (other than using map) would befor(my $i=0; $i<$iLength; $i++) { $arr[$i] = uc($arr[$i]); }
for (@arr) { $_ = uc; }
or even
$_ = uc for @arr
In reply to Re: pipe one function output to another
by FunkyMonk
in thread pipe one function output to another
by bob_dobalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |