Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Attempt to copy freed scalar and return value semantics

by stephen (Priest)
on May 24, 2013 at 17:39 UTC ( [id://1035177]=note: print w/replies, xml ) Need Help??


in reply to Attempt to copy freed scalar and return value semantics

The most obvious possibility is context. If you assign the method to $rv, it forces scalar context, while if you return it directly, it has whatever context the method was called in, which could be list or void context. We'd have to see the calling statement to be sure.

Update: See http://community.activestate.com/node/8760.

stephen

  • Comment on Re: Attempt to copy freed scalar and return value semantics

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-23 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found