Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: how do $x = \12 differ from $$y = 12 ?

by runrig (Abbot)
on May 11, 2005 at 16:19 UTC ( #456057=note: print w/replies, xml ) Need Help??


in reply to how do $x = \12 differ from $$y = 12 ?

Here is one difference to think on:
#!/usr/bin/perl use strict; my $x = \12; my $$y = 12; $$y++; $$x++; # <<-line 9 ################# output: Modification of a read-only value attempted at ./tst line 9.
Update: gellyfish already mentioned this, though a demonstration is helpful :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2020-07-03 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?