in reply to Using a 'getopt' in module code
if(myfunction(debug=>1,var=>$val)){...} sub myfunction{ my @params=@_; if($params{debug}){...} } [download]
------------------------------- Need a good Perl friendly Host Provider? http://www.dreamhost.com