Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
            return scalar @$self;
        }
    }
    
  2. or download this
    my ( $a1z, $a2z, $a3z ) = qw( 42 13 666 );
    my @az;
    ...
    for ( 1 .. 3 ) {
        print "\$a${_}z = $az[$_]\n";
    }
    
  3. or download this
    print "\$a0z = $az[0]\n"; 
    # Array index 0 out-of-bounds at bar.pl line 63
    
  4. or download this
    use List::Util qw( sum );
    
    my $sum = sum( @az[ 1 .. 3 ] );
    
    print "sum = $sum\n";
    
  5. or download this
    my $sum = sum( @az );