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 -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/