Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2015-11-29 03:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls