Message-ID: <
20010423123820.A19945@puffinry.freeserve.co.uk>
p4raw-id: //depot/perl@9790
$self->{'subs_declared'}{$name} = 1;
if ($name eq "BEGIN") {
my $use_dec = $self->begin_is_use($cv);
- return $use_dec if defined ($use_dec);
+ if (defined ($use_dec)) {
+ return () if 0 == length($use_dec);
+ return $use_dec;
+ }
}
return "sub $name " . $self->deparse_sub($cv);
}
# Certain pragmas are dealt with using hint bits,
# so we ignore them here
if ($module eq 'strict' || $module eq 'integer'
- || $module eq 'bytes') {
+ || $module eq 'bytes' || $module eq 'warnings') {
return "";
}