Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: lvalues in perl prior to 5.16.3 throws "Can't modify reference constructor in lvalue subroutine return"

by LanX (Saint)
on Jan 22, 2015 at 11:54 UTC ( [id://1114123]=note: print w/replies, xml ) Need Help??


in reply to lvalues in perl prior to 5.16.3 throws "Can't modify reference constructor in lvalue subroutine return"

> Error message is not quite clear

$ echo "Can't modify reference constructor in lvalue subroutine return +"|splain Can't modify reference constructor in lvalue subroutine return (#1) (F) You aren't allowed to assign to the item indicated, or otherwi +se try to change it, such as with an auto-increment.

I suppose your tie is loading too much magic onto $dummy ... but this would be a runtime error not compilation like you indicated(?)

Please try to give a concise sample reproducing your problem, I'm not motivated to dig into your module to do the binary debugging search for you. ;-)

... and please name concrete Perl version numbers failing.

Cheers Rolf

PS: Je suis Charlie!

  • Comment on Re: lvalues in perl prior to 5.16.3 throws "Can't modify reference constructor in lvalue subroutine return"
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found