X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLinux%2FSysInfo.pm;h=9471da157403063ceb32bc29b40bf9c00972e67d;hb=27ba28e4fc567151a06264c50b443f1c12eb76f4;hp=767238c882427e360160c5adfb652aa1bd953b0b;hpb=35962c406c3363c45f68c88516a2946c86e902db;p=perl%2Fmodules%2FLinux-SysInfo.git diff --git a/lib/Linux/SysInfo.pm b/lib/Linux/SysInfo.pm index 767238c..9471da1 100644 --- a/lib/Linux/SysInfo.pm +++ b/lib/Linux/SysInfo.pm @@ -1,5 +1,7 @@ package Linux::SysInfo; +use 5.006; + use strict; use warnings; @@ -20,7 +22,7 @@ BEGIN { =head1 SYNOPSIS - use Linux::SysInfo qw/sysinfo/; + use Linux::SysInfo qw; my $si = sysinfo; print "$_: $si->{$_}\n" for keys %$si; @@ -141,12 +143,12 @@ Functions are also exported by the C<:funcs> tag, and constants by C<:consts>. =cut -use base qw/Exporter/; +use base qw; our @EXPORT = (); our %EXPORT_TAGS = ( - 'funcs' => [ qw/sysinfo/ ], - 'consts' => [ qw/LS_HAS_EXTENDED/ ] + 'funcs' => [ qw ], + 'consts' => [ qw ] ); our @EXPORT_OK = map { @$_ } values %EXPORT_TAGS; $EXPORT_TAGS{'all'} = [ @EXPORT_OK ]; @@ -161,6 +163,9 @@ Moreover, since the perl hash function has changed after the 5.6 version, you wi L 5.6. +A C compiler. +This module may happen to build with a C++ compiler as well, but don't rely on it, as no guarantee is made in this regard. + =head1 SEE ALSO The C man page. @@ -192,7 +197,7 @@ Tests code coverage report is available at L