Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Test if list is range

by Kenosis (Priest)
on Sep 29, 2012 at 15:05 UTC ( #996391=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print 'The variable is ' . ( is123(@array) ? '' : 'not ' ) . '[1 .. 3]
    +.';
    
    sub is123 { @_ ~~ [ 1 .. 3 ] }
    
  2. or download this
    The variable is [1 .. 3].
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-09-22 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls