Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
There's more than one way to do things
 
PerlMonks  

Re^6: Use reference for functions in functions

by T_I (Novice)
on Feb 28, 2013 at 09:05 UTC ( #1021024=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub adding ($$)
    { my $first=shift;
    ...
    }
    
    1;
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    my $answer = ( $one + $two);
    
    adding($one,$two);
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    my $answer = ( $one + $two);
    
    adding($one,$two,$answer);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-04-23 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls