Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Range Operator in If Statement

by kejohm (Hermit)
on Jan 04, 2012 at 21:35 UTC ( #946297=note: print w/ replies, xml ) Need Help??

in reply to Range Operator in If Statement

If you are able to upgrade to a newer version of Perl, starting with v5.10, you can use the smart match operator, eg:

use 5.010; my $ref = 7; if ( $ref ~~ [ 1 .. 8 ] ) { ... }

Comment on Re: Range Operator in If Statement
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2015-11-29 09:37 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 (750 votes), past polls