Problems? Is your data what you think it is? | |
PerlMonks |
Re: Refactoring prototypes - what am I going to break (context)by tye (Sage) |
on Oct 30, 2007 at 16:02 UTC ( [id://648039]=note: print w/replies, xml ) | Need Help?? |
You'd need to replace unlikely code like foo(@bar) with foo(0+@bar). More likely problem would be foo(bar()) which might need to be made foo(scalar bar()). The $ in the prototype forces scalar context upon the arguments while w/o prototypes the arguments are evaluated in list context. - tye
In Section
Seekers of Perl Wisdom
|
|