In most unix shells, there is a concept of sourcing or dotting as it may be also called. My understanding of this concept is that the current process reads a file without having to start a sub process, thus, variables that are set within the script which is read, may stay resident in the current shell.
Since a perl program is aways executed a sub process is started. Environmentals that are set via a system call or via the ENV command are not passed up to the calling process (basic UNIX).
Is their a method where perl can mimic SHELL sourcing?
Thank you.
In reply to sourcing
by trschau