and Subject: [PATCH] More modules that don't lazy load Carp right.
Message-ID: <
20020904002157.GD2701@ool-18b93024.dyn.optonline.net>
and Message-ID: <
20020904003857.GE2701@ool-18b93024.dyn.optonline.net>
p4raw-id: //depot/perl@17840
*encode = \&encode_classic;
}else{
require Carp;
- Carp::croak __PACKAGE__, "::set_transcoder(modern|classic|xs)";
+ Carp::croak(__PACKAGE__, "::set_transcoder(modern|classic|xs)");
}
}
my $msg = shift;
my $pair = join(", ", map {sprintf "\\x%x", $_} @_);
require Carp;
- Carp::croak $obj->name, ":", $msg, "<$pair>.", caller;
+ Carp::croak($obj->name, ":", $msg, "<$pair>.", caller);
}
1;
require Carp;
my $obj = shift;
my $class = ref($obj) ? ref($obj) : $obj;
- Carp::croak $class, "->encode() not defined!";
+ Carp::croak($class, "->encode() not defined!");
}
sub decode{
require Carp;
my $obj = shift;
my $class = ref($obj) ? ref($obj) : $obj;
- Carp::croak $class, "->encode() not defined!";
+ Carp::croak($class, "->encode() not defined!");
}
sub DESTROY {}
# rats!
$host = '';
- Carp::croak "Cannot get host name of local machine";
+ croak "Cannot get host name of local machine";
}
elsif ($^O eq 'MSWin32') {
}
# bummer
- || Carp::croak "Cannot get host name of local machine";
+ || croak "Cannot get host name of local machine";
# remove garbage
$host =~ tr/\0\r\n//d;
my($fullname,@suffices) = @_;
unless (defined $fullname) {
require Carp;
- Carp::croak "fileparse(): need a valid pathname";
+ Carp::croak("fileparse(): need a valid pathname");
}
my($fstype,$igncase) = ($Fileparse_fstype, $Fileparse_igncase);
my($dirpath,$tail,$suffix,$basename);