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].