my $first_char = substr $foo[0], 0, 1;
is much clearer, at least to my eye, probably executes faster and is faster to type too. What you might call a 'win win win' scenario.
In reply to Re^2: Reading parts of array elements
by GrandFather
in thread Reading parts of array elements
by monkeybus
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |