There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I have written a little sub that includes other files in your perl code. And I think, it's exactly what you need. Just try it and see if it works: include('database.pl'); OR my $whatever = include('getTime.pl'); ... sub include{open my$H,'<:raw',$_[0];read($H,my$E,999999)or die"Error: Can't include \"$_[0]\"";close$H;eval$E;} In reply to Re: Splitting program into modules
by harangzsolt33
|
|