On Wed, 2 Aug 2017 18:48:43 +0000
"Dyer, Dustin E. (KSC-VAH10)" <[email protected]> wrote:
> So is there something different I can do to cause an error when
> provided files contain undefined barewords?
Do you mean something like this?
my $someVar = '[map {$_ - 250 * FT2M} 1,2,3,]'; #FT2M is undef
eval $someVar;
if( $@ ){
if( $@ =~ /^Bareword / ){
# process bare word error
}else{
# some other error
}
}else{
# no errors.
}
--
Don't stop where the ink does.
Shawn H Corey
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/