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

Re: $VERSION Update and Questions

Thread Previous | Thread Next
From:
Ronald J Kimball
Date:
April 30, 2003 15:34
Subject:
Re: $VERSION Update and Questions
Message ID:
20030430160451.GE1393566@linguist.thayer.dartmouth.edu
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?

Ronald

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About