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.
In reply to Re: sourcing
by dga
in thread sourcing
by trschau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |