X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=samples%2Fsysinfo.pl;h=4f2bf7fae2975d4c945985c74dc89729aa27ee3e;hb=HEAD;hp=2ca2f90a374954c60f79599712c60fe629acd43a;hpb=aeb4782b4d78bdce2873eef541f5759dd9dcae42;p=perl%2Fmodules%2FLinux-SysInfo.git diff --git a/samples/sysinfo.pl b/samples/sysinfo.pl index 2ca2f90..4f2bf7f 100755 --- a/samples/sysinfo.pl +++ b/samples/sysinfo.pl @@ -3,7 +3,9 @@ use strict; use warnings; -use Linux::SysInfo qw/sysinfo LS_HAS_EXTENDED/; +use lib qw; + +use Linux::SysInfo qw; my $si = sysinfo; die 'sysinfo() failed ! (should be pretty rare but it did happen)' unless $si; @@ -19,5 +21,5 @@ if (LS_HAS_EXTENDED) { ($si->{mem_unit} == 1) ? "the memory values are the actual sizes in bytes :\n" : "the sizes in bytes are actually :\n"; print '- ', $_, ': ', $si->{$_} * $si->{mem_unit}, "\n" for sort - qw/totalram freeram sharedram bufferram totalswap freeswap totalhigh freehigh/; + qw; }