in reply to Re^3: I need to know if 32-bit or 64-bit perl is running my script.
in thread I need to know if 32-bit or 64-bit perl is running my script.
The first two are CORE capabilities since perl5.003_07. Sorry to sound harsh, but whining that you cannot install from CPAN is bullshit, that is repeated over and over and over again with all possible workarounds here on PM.
Nagging about startup time might be true for Config::Perl::V, which does quite a bit more than we'd love to just to be able to get the info (not true anymore on perl-5.18, where that info is available directly from CORE, as is Config::Perl::V). The extra time you see is the dumper time, which was just used to show you the content. Try again with just accessing the data required and you will see a considerable speedup. IMHO all those speeds are just noise in the complete picture, but I do not want to compare apples and pears.
Nagging about Config is just trying to find sand to throw into the engine. You have no idea how many modules use Config, so it will be loaded anyway sooner or later.
$ find 5.18.0 -name \*.pm | xargs grep -wl 'use Config' | wc -l 57 $ find site_perl/5.18.0 -name \*.pm | xargs grep -wl 'use Config' | wc + -l 107 $ corelist Config Config::Perl::V Data for 2013-08-20 Config was first released with perl 5.00307 Data for 2013-08-20 Config::Perl::V was first released with perl v5.17.9 $ time perl -V:ptrsize ptrsize='4'; 0.005u 0.003s 0:00.00 0.0% 0+0k 0+0io 0pf+0w $ time perl -MConfig -wE'say $Config{ptrsize}' 4 0.001u 0.005s 0:00.00 0.0% 0+0k 0+0io 0pf+0w $ time perl -MConfig::Perl::V -wE'say Config::Perl::V::myconfig ()->{c +onfig}{ptrsize}' 4 0.007u 0.002s 0:00.00 0.0% 0+0k 0+0io 0pf+0w
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: I need to know if 32-bit or 64-bit perl is running my script.
by flexvault (Monsignor) on Sep 18, 2013 at 20:41 UTC | |
by Anonymous Monk on Sep 19, 2013 at 00:43 UTC | |
by Jenda (Abbot) on Sep 19, 2013 at 09:09 UTC |