try replacing the code you showed with
foreach my $arg (@ARGV) { if( $arg =~ /^-B(\d+)$/ ) { $before = $1; } elsif ( $before eq '-B' ) { $before = $arg; if( $before !~ /^\d+/ ) { die "Bad before argument ($before)\n"; } } elsif ( $arg eq '-B' ) { $before = $arg; } }
In reply to Re: hmm - - - something has changed in perl (from 5.34 to 5.36
by tybalt89
in thread hmm - - - something has changed in perl (from 5.34 to 5.36
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |