Summary

 <  Day Day Up  >  

Perl supports user -definable functions, called subroutines or subs, that behave just like the built-in functions: They can take arguments, do work, and then return values to the caller if necessary. Perl subroutines can call other subroutines and even themselves . Perl also allows you to declare variables private to a subroutine (or any block of code) and create self-contained pieces of code that can then be reused.

 <  Day Day Up  >  


SAMS Teach Yourself Perl in 24 Hours
Sams Teach Yourself Perl in 24 Hours (3rd Edition)
ISBN: 0672327937
EAN: 2147483647
Year: 2005
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net