Welcome to the Monastery | |
PerlMonks |
Re^4: "Good" style for splicing arraysby LanX (Saint) |
on Nov 14, 2008 at 15:01 UTC ( [id://723672]=note: print w/replies, xml ) | Need Help?? |
Good point, Massa! I agree that grepping for defined is no general fix of the problem! But in cases you really need to get undefs, the listflattening approach is better. e.g. parameter passing ($self,$x,$y,@opt)=@_; so the two approaches are actually not two ways to do the same thing, but two different thing which only seemed interchangebal.
--- Which song? ;)
In Section
Seekers of Perl Wisdom
|
|