Which produces something like:#!perl
use strict;
use warnings;
use GTop ();
use Number::Bytes::Human qw(format_bytes);my $gtop = GTop->new;
my $proc_mem = $gtop->proc_mem($$);
my $size = $proc_mem->size;
print format_bytes($size) . "\n";
So you can find out that the module you were criticising isn't bloated code after all...6.2M
That program has a small bug, if one wants to load a naked Foo.pm file, it gives Warning: Use of "require" without parentheses is ambiguous at (eval 4) line 1. To make it work correctly:
- if (eval "require $_") {
+ if (eval "require q($_)") {