in reply to Re: Reading parts of array elements
in thread Reading parts of array elements

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.


True laziness is hard work

Replies are listed 'Best First'.
Re^3: Reading parts of array elements
by pid (Monk) on Dec 09, 2009 at 11:31 UTC

    Thanks for this, I have to say that this is much better than my way of doing it.
    Mine's more or less a bad example. :)