> -----Original Message----- > From: Matthew Harrison [mailto:[EMAIL PROTECTED]] > Subject: callin subs > > i have defined a sub using > > sub mysubname{ > code here > } > > but how do i call it? i have tried just having the name but > that doesn't > work. > > -- > Matthew Harrison
mysubname(); If your sub has a return value that you need to assign to a variable: my $returnvar = mysubname(); If you need to pass parameters into the sub: mysubname($param1, $param2); Hope this helps... Jason CONFIDENTIALITY NOTICE: ************************************************************************ The information contained in this ELECTRONIC MAIL transmission is confidential. It may also be privileged work product or proprietary information. This information is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution [other than to the addressee(s)], copying or taking of any action because of this information is strictly prohibited. ************************************************************************ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]