Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 chanting in the Monastery: (15)
As of 2014-11-21 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (117 votes), past polls