the sub db is the error handler. The iocommon file is a file of subroutines and is named as iocommon.sub Thanks for your help. Anirsubfile('iocommon'); sub subfile {my($f)=@_;my($w);if(!$GOT_HA{$f}){$f=($my_base_loc.$subsl +ocation.$ds.$f.'.sub'); $t=open (IE,"$f"); $rep=($t)?'OK':$!;db("subfile $f",$rep);@tt=<IE>;cl +ose(IE); while(@tt){$l=trim(shift @tt);$w.=$l."\n";} eval($w);$GOT_HA{$f}=1;}}
In reply to Subroutine problems by anir_pandit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |