Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Still don't undersand "Modification of a read-only value attempted" error

by Eliya (Vicar)
on Jun 20, 2012 at 22:39 UTC ( #977498=note: print w/ replies, xml ) Need Help??


in reply to Re: Still don't undersand "Modification of a read-only value attempted" error
in thread Still don't undersand "Modification of a read-only value attempted" error

in both cases, it is eventually assigned to $item.

No, nothing is being assigned to $item. Rather, in the error case, $item becomes an alias, i.e. an alternate way to access the same instance of the constant string "abcdef".


Comment on Re^2: Still don't undersand "Modification of a read-only value attempted" error
Select or Download Code
Re^3: Still don't undersand "Modification of a read-only value attempted" error
by Dan.Pinvidic (Initiate) on Jun 20, 2012 at 22:46 UTC

    BING.....Light bulb just came on....Thank you so much. I was pulling my hair out...and I don't have any to spare....Thanks again

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2014-09-24 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (246 votes), past polls