Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Range Operator in If Statement

by toolic (Bishop)
on Jan 04, 2012 at 20:53 UTC ( #946290=note: print w/ replies, xml ) Need Help??


in reply to Range Operator in If Statement

...or, you could reuse an existing function from Acme::Tools (or create your own function)

use warnings; use strict; use Acme::Tools qw(between); my $ref = 7; if (between($ref, 1, 8)) { print "between\n"; }


Comment on Re: Range Operator in If Statement
Download Code
Replies are listed 'Best First'.
Re^2: Range Operator in If Statement
by mmartin (Monk) on Jan 04, 2012 at 21:14 UTC
    toolic, thanks for the reply...

    Sweet deal... I just cpan-ed it and I will give it a try.


    Thanks alot,
    Matt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2015-07-08 06:37 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 (94 votes), past polls