Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 examining the Monastery: (14)
As of 2014-12-18 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (47 votes), past polls