- or download this
BEGIN {
my $code= '...some work-around for not having GD...';
...
eval "sub mySub { $code }; 1 "
or die "$@";
}
- or download this
package Pretend;
use base qw(Exporter);
...
sub sorter(&@);
sub hahser(\%);
#[...]
- or download this
my $got_Pretend;
BEGIN {
...
} else {
@list= sort \&comparer worse_hasher(\%hash);
}
- or download this
if( $got_Pretend ) {
@list= sorter( sub { $_[0] <=> $_[1] }, &hasher(\%hash) );
} else {
@list= sort \&comparer worse_hasher(\%hash);
}