Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re:^4 Returning Values from Subroutines

by zigdon (Deacon)
on Sep 06, 2002 at 17:48 UTC ( #195719=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Returning Values from Subroutines
in thread Returning Values from Subroutines

Well, as long as we're golfing:
#!/usr/local/bin/perl print add(1,2); sub add{ $_[0] + $_[1]; }

-- Dan

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://195719]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2018-07-23 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (468 votes). Check out past polls.

    Notices?