use strict;
use warnings;
-use Carp qw/croak/;
use Config;
use base qw/B::Deparse/;
};
sub _parse_args {
- croak 'Optional arguments must be passed as key/value pairs' if @_ % 2;
+ if (@_ % 2) {
+ require Carp;
+ Carp::croak('Optional arguments must be passed as key/value pairs');
+ }
my %args = @_;
+
my $deparse = $args{deparse};
if (defined $deparse) {
if (!ref $deparse) {
} else {
$deparse = [ ];
}
- my $level = $args{level};
- $level = -1 unless defined $level;
- $level = int $level;
+
+ my $level = $args{level};
+ $level = -1 unless defined $level;
+ $level = int $level;
+
return $deparse, $level;
}