From: Paul Johnson <p...@pjcj.net>
> On Tue, Jun 23, 2009 at 06:35:26PM +0200, Jenda Krynicky wrote:
> > From: Roman Makurin <dro...@gmail.com>
> > > On Tue, Jun 23, 2009 at 12:46:33PM +0200, Jenda Krynicky wrote:
> > > > From: Roman Makurin <dro...@gmail.com>
> > > > > Just looked throught some standart perl modules and found
> > > > > something cryptic to myself:
> > > > > 
> > > > > package Module;
> > > > > 
> > > > > $Module::VERSION = '1.0';
> > > > > $Module::VERSION = eval $Module::VERSION;
> > > > > 
> > > > > Why eval part is needed here ?
> > > > 
> > > > It's not. What module was that? Maybe you skipped something that was 
> > > > the reason.
> > > 
> > > File::Spec and CPAN, maybe other
> > 
> > Looks like cargo culting to me.
> 
> >From the docs: http://perldoc.perl.org/perlmodstyle.html#Version-numbering

Bleargh. Not that it doesn't work. In a way. But my that is ugly!

If you want to remove underscores, do remove underscores! Do not 
eval"" the stuff! Unless it's part of a JAPH or OBFU.

Jenda
===== je...@krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to