On Sun, 2007-04-08 at 12:15 +0200, Raphael wrote:
> Hi Users,
>
> I want to "source" another file (also a perl-script) into my one at the
> beginning. There are definitions which are to be loaded before executing
> the rest of the other script. In a shell-script, I can do it with ".
> filename", a
Hello,
In Perl you may try this:
BEGIN {
do "other.pl";
}
2007/4/8, Raphael <[EMAIL PROTECTED]>:
Hi Users,
I want to "source" another file (also a perl-script) into my one at the
beginning. There are definitions which are to be loaded before executing
the rest of the other script. In a she
Hi Users,
I want to "source" another file (also a perl-script) into my one at the
beginning. There are definitions which are to be loaded before executing
the rest of the other script. In a shell-script, I can do it with ".
filename", and in perl?
Thanks for any ideas and help.
Greetings Raphael
Hi,
You may need to open individual files by using some for loop and after
reading all the contents of a single fine in a string, try applying a
regular expression something like this -
$FileContent =~ s/\.html/.php/g;
Once regular expression succesully applied, write back the string into the