On Wed, 2 Aug 2017 18:48:43 +0000
"Dyer, Dustin E. (KSC-VAH10)" <dustin.e.d...@nasa.gov> 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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to