Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Trying to skip for $LEV = 0

by virtualsue (Vicar)
on Jan 28, 2007 at 11:28 UTC ( #596961=note: print w/ replies, xml ) Need Help??


in reply to Trying to skip for $LEV = 0

Beware of using regular expressions in place of '==':

#!/usr/bin/perl use warnings; use strict; my $val = 1100; print "Value contains a 0\n" if $val =~ /0/; print "Value is actually equal to 0\n" if $val =~ /^0$/;
Don't obfuscate your code by using pattern matching when you don't need it.


Comment on Re: Trying to skip for $LEV = 0
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2015-07-30 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls