![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Re: subroutine syntaxby marius (Hermit) |
on Dec 11, 2000 at 03:37 UTC ( #45988=note: print w/replies, xml ) | Need Help?? |
For that matter, let's take a look at uses of the return function. (perldoc -f return)
Now, you can set the global $var to by equal to the return value of the subroutine. Also, you can just print the return of the subroutine if you like. return is a very handy tool when it comes to subroutine programming and cleaning up perl code. -marius
In Section
Seekers of Perl Wisdom
|
|