Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 cooling their heels in the Monastery: (6)
As of 2015-01-31 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (259 votes), past polls