Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "my @text = qw/A B C D E F G H I J/;
    ...
       }
    "
    F is at index 5
    
  2. or download this
    >perl -wMstrict -le
    "my @text = ('A' .. 'J');
    ...
       }
    "
    F is at index 5
    
  3. or download this
    >perl -wMstrict -le
    "my @text = qw/A B C D E F G H F I J/;
    ...
     print qq{these indices have an 'F': @F_in_it};
    "
    these indices have an 'F': 5 8