Re: How to "source" another perl-file into one

2007-04-08 Thread Ken Foskey
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

Re: How to "source" another perl-file into one

2007-04-08 Thread Jeff Pang
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

How to "source" another perl-file into one

2007-04-08 Thread Raphael
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

Re: Substituting string in many files

2007-04-08 Thread BTR Naidu
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