John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
First, I see this idiom being used:
Why does it set it and then eval it?our $VERSION = '0.01'; $VERSION = eval $VERSION;
Second, I'd like to put the $VERSION in its own file. This is to make it easy to match up versions of the code (using git) with versions of non-code assets like large image files, which are kept out of git and saved in a simple manner.
If I include the file in a normal way, it has its own scope. Is there a simple way to just include it "in place"?
Back to
Seekers of Perl Wisdom