in reply to
Is this code correct
Looks wrong to me $_1 is always undefined and @info; seems senseless too.
Boris
Comment on
Re: Is this code correct
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...
[reply]
A reply falls below the community's threshold of quality. You may see it by logging in.
In Section
Seekers of Perl Wisdom