in reply to $VERSION diversion
Aristotle has elaborated a cool hack here on use.perl.org, I hope not to infring any copyright duplicating it here:
that yields:eval "package Some::Module; $_" for grep m/ = /, split /\n/, <<'=cut'; =head1 VERSION =for fooling makemaker =cut-feigned This document describes Some::Module, $VERSION = 0.1 =cut
Wow, the road to the Dark Side of the Perl is surely attractive!$ perldoc ./Some/Module.pm | grep VERSION This document describes Some::Module, $VERSION = 0.1 $ perl -MSome::Module \ -le'print Some::Module->VERSION' 0.1 $ perl -MExtUtils::MakeMaker \ -le'print MM->parse_version(shift)' Some/Module.pm 0.1
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
|
|---|