in reply to sourcing
You may be wanting something like this.
do "myfile";
That will read in the specified file as perl and execute it in place right then.
The camel says its like doing a require with an eval, but more efficient and gives file and line for errors. It will re read and reparse the entire file for each call so it is not that good in loops unless the file changes with each pass of the loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: sourcing
by snafu (Chaplain) on Apr 02, 2002 at 15:20 UTC |