http://www.perlmonks.org?node_id=739612


in reply to Is this code correct

Looks wrong to me $_1 is always undefined and @info; seems senseless too.
Boris

Replies are listed 'Best First'.
Re^2: Is this code correct
by kennethk (Abbot) on Jan 28, 2009 at 15:38 UTC
    The OP actually typed $_[1] and PM interpolated that into $_1, so that's no problem. Looping over an undefined array, on the other hand... Perhaps it's a global...
A reply falls below the community's threshold of quality. You may see it by logging in.