Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl>perl -wMstrict -le
    "my $s = ('foo', 'bar', 'baz')[1];
    ...
    'bar'
    'zap'
    'hac'
    
  2. or download this
    c:\@Work\Perl>perl -wMstrict -le
    "for my $s qw(hic hac hoc) {
    ...
    'hic'
    'hac'
    'hoc'