Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Refactoring prototypes - what am I going to break

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        

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://648039]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found