John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
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"?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: concerning our $VERSION
by bingos (Vicar) on Mar 31, 2011 at 22:04 UTC | |
by ysth (Canon) on Apr 01, 2011 at 07:24 UTC | |
|
Re: concerning our $VERSION
by wind (Priest) on Mar 31, 2011 at 22:04 UTC | |
|
Re: concerning our $VERSION
by locked_user sundialsvc4 (Abbot) on Apr 01, 2011 at 00:13 UTC |