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

Re^2: Match Numeric Range

by Monk::Thomas (Friar)
on Aug 18, 2015 at 21:35 UTC ( [id://1139069]=note: print w/replies, xml ) Need Help??


in reply to Re: Match Numeric Range
in thread Match Numeric Range

@OP

You could also write the conditional as

if ($range >= 300 and $range <= 400)

In this case it actually does not make a difference which one you use, but

open my $fh, '<', $filename || die;
and
open my $fh, '<', $filename or die;

are two totally different things due to different order of precedence. (A verbose explanation can be found at 'or' vs '', '&&' vs 'and'.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found