I believe you can require them in. Personally I tend to read the code into a variable and eval it.
sub run_it { my $filename = shift; open my $in, $filename or die $!; local $/ = undef; my $entire_script = <$in>; close $in; eval $entire_script; die $@ if $@; }
-Paul
In reply to Re: How to call perl script within perl script ?
by jettero
in thread How to call perl script within perl script ?
by gasho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |