Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Syntactic Confectionery Delight
 
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 perusing the Monastery: (7)
As of 2014-04-19 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls