Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Attempt to copy freed scalar and return value semantics

by stephen (Priest)
on May 24, 2013 at 17:39 UTC ( #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
Node Status?
node history
Node Type: note [id://1035177]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2020-05-26 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?