Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Why use references?

by pileofrogs (Priest)
on Dec 12, 2005 at 01:02 UTC ( [id://515927]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub increment {
        my $arg_ref = shift;
    ...
    }
    
    print "$num\n";
    
  2. or download this
    sub increment {
        my $arg = shift
    ...
    $num = increment($num);
    
    print "$num\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-26 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found