Help for this page

Select Code to Download


  1. or download this
    my @array = qw/zero one two three/;
    print @array, $/;
    print "@array\n";
    print "${@array}\n";
    
  2. or download this
    14:38:57 ~/perl/source $ perl -w array
    zeroonetwothree
    zero one two three
    
    14:38:59 ~/perl/source $
    
  3. or download this
    my @array = qw/zero one two three/;
    my $n = scalar @array;
    print "$n\n";
    
  4. or download this
    14:44:42 ~/perl/source $ perl -w array
    4
    14:44:49 ~/perl/source $