in reply to good use of variables

Heh ... couldn't help but notice that Corion's advice (which is sound) is only a couple of typos away:
my @TARGET =(0..50); foreach $target(@TARGET){ $M4_{$target}; }
Cheers,
Rob

Replies are listed 'Best First'.
Re^2: good use of variables
by GrandFather (Saint) on Jul 19, 2007 at 21:55 UTC

    The my is still required, but stuck in front of $target. ;)


    DWIM is Perl's answer to Gödel