Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: strict isn't everything

by gav^ (Curate)
on Jun 12, 2002 at 03:31 UTC ( #173724=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: strict isn't everything
in thread strict isn't everything

While if( $_file_name !~ /^(\s*)$/ ) {
does handle the case of undef, it will cause a warning:

use warnings; my $_file_name = undef; if ($_file_name !~ /^(\s*)$/ ) { print "ok\n"; } __END__ Use of uninitialized value in pattern match (m//) at test.pl line 6.

gav^


Comment on Re: Re: Re: strict isn't everything
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://173724]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-12-29 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls