Works great, patch will b e uploaded here soon. but in the meantime (note that VERSIONis
still a version object and Config.pm is not in %INC)
hal9000:~ dmuey$ perl -MData::Dumper -Mstrict -wle 'use version;my
$VERSION=qv("0.2.1");print Dumper $VERSION, \%INC;'
$VAR1 = bless( {
'qv' => 1,
'version' => [
0,
2,
1
]
}, 'version' );
$VAR2 = {
'version/vxs.pm' => '/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-
2level/version/vxs.pm',
'warnings/register.pm' => '/System/Library/Perl/5.8.8/warnings/register.pm',
'bytes.pm' => '/System/Library/Perl/5.8.8/bytes.pm',
'XSLoader.pm' => '/System/Library/Perl/5.8.8/darwin-thread-multi-
2level/XSLoader.pm',
'Carp.pm' => '/System/Library/Perl/5.8.8/Carp.pm',
'vars.pm' => '/System/Library/Perl/5.8.8/vars.pm',
'strict.pm' => '/System/Library/Perl/5.8.8/strict.pm',
'Exporter.pm' => '/System/Library/Perl/5.8.8/Exporter.pm',
'version.pm' => '/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-
2level/version.pm',
'warnings.pm' => '/System/Library/Perl/5.8.8/warnings.pm',
'overload.pm' => '/System/Library/Perl/5.8.8/overload.pm',
'Data/Dumper.pm' => '/System/Library/Perl/5.8.8/darwin-thread-multi-
2level/Data/Dumper.pm'
};
hal9000:~ dmuey$
Now with the original:
hal9000:~ dmuey$ perl -MData::Dumper -Mstrict -wle 'use version;my
$VERSION=qv("0.2.1");print Dumper $VERSION, \%INC;'
$VAR1 = bless( {
'qv' => 1,
'version' => [
0,
2,
1
]
}, 'version' );
$VAR2 = {
'version/vxs.pm' => '/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-
2level/version/vxs.pm',
'warnings/register.pm' => '/System/Library/Perl/5.8.8/warnings/register.pm',
'bytes.pm' => '/System/Library/Perl/5.8.8/bytes.pm',
'XSLoader.pm' => '/System/Library/Perl/5.8.8/darwin-thread-multi-
2level/XSLoader.pm',
'Carp.pm' => '/System/Library/Perl/5.8.8/Carp.pm',
'vars.pm' => '/System/Library/Perl/5.8.8/vars.pm',
'strict.pm' => '/System/Library/Perl/5.8.8/strict.pm',
'Exporter.pm' => '/System/Library/Perl/5.8.8/Exporter.pm',
'version.pm' => '/System/Library/Perl/Extras/5.8.8/darwin-thread-multi-
2level/version.pm',
'warnings.pm' => '/System/Library/Perl/5.8.8/warnings.pm',
'AutoLoader.pm' => '/System/Library/Perl/5.8.8/AutoLoader.pm',
'overload.pm' => '/System/Library/Perl/5.8.8/overload.pm',
'Config.pm' => '/System/Library/Perl/5.8.8/darwin-thread-multi-2level/Config.pm',
'DynaLoader.pm' => '/System/Library/Perl/5.8.8/darwin-thread-multi-
2level/DynaLoader.pm',
'Data/Dumper.pm' => '/System/Library/Perl/5.8.8/darwin-thread-multi-
2level/Data/Dumper.pm'
};
hal9000:~ dmuey$
Memory use:
hal9000:~ dmuey$ perl -e 'print `ps u -p $$`;'
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
dmuey 13669 0.0 0.1 76944 1168 s000 R+ 10:23AM 0:00.00 perl -e print `ps u -p
$$`;
hal9000:~ dmuey$ perl -e 'use version;print `ps u -p $$`;'
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
dmuey 13671 0.0 0.2 76980 1820 s000 R+ 10:23AM 0:00.01 perl -e use
version;print `ps u -p $$`;
hal9000:~ dmuey$
orig:
hal9000:~ dmuey$ perl -e 'print `ps u -p $$`;'
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
dmuey 13700 0.0 0.1 76944 1168 s000 R+ 10:25AM 0:00.00 perl -e print `ps u -p
$$`;
hal9000:~ dmuey$ perl -e 'use version;print `ps u -p $$`;'
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
dmuey 13702 3.7 0.2 76980 1944 s000 S+ 10:25AM 0:00.02 perl -e use
version;print `ps u -p $$`;
hal9000:~ dmuey$