Just another Perl shrine | |
PerlMonks |
Re: Re: Re: What Are The Rules For Subs And Modules When Fed Wrong Inputby dpuu (Chaplain) |
on Jul 21, 2002 at 04:09 UTC ( [id://183761]=note: print w/replies, xml ) | Need Help?? |
When you define a sub, you can tell the compiler what args it expects. In my example, the ($$) means that it must be passed two scalar values. Rather than me going into more detail myself, checkout this tutorial. Another view is given by Tom Christiansen, here. Also, don't forget the Camel book. --Dave.
In Section
Seekers of Perl Wisdom
|
|