Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Pointers and References

by Leudwinus (Scribe)
on Nov 25, 2020 at 15:13 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11124199]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found