develooper Front page | perl.perl5.porters | Postings from April 2003

Re: $VERSION Update and Questions

Thread Previous | Thread Next
Ronald J Kimball
April 30, 2003 15:34
Re: $VERSION Update and Questions
Message ID:
On Wed, Apr 30, 2003 at 11:16:20AM -0400, John Peacock wrote:

> The final piece I need is to make this work:
> 	$VERSION = "1.2_3"; # now a version object
> 	$VERSION = eval $VERSION; # now just a string :~(
> I need to make that eval avoid the stringification so that second line is 
> effectively ignored.  Is there some way I can tell if a bit of code is 
> bring run inside an eval context, from that random bit of code?

Does $^S do what you need?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About