Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Pointers and References

by Leudwinus (Beadle)
on Nov 25, 2020 at 15:13 UTC ( #11124199=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $variable = 22;
    my $pointer = \$variable;
    ...
    $$$double_pointer = 50;
    
    say "Look at that!  \$variable now equals $variable";
    
  2. or download this
    The address of $variable, which contains the value 22,
    is SCALAR(0x801e64540)
    Look at that!  $variable now equals 25
    $double_pointer = REF(0x801e644b0)
    Look at that!  $variable now equals 50
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2021-06-13 02:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (54 votes). Check out past polls.

    Notices?