Help for this page

Select Code to Download


  1. or download this
    print map {"@$_\n" } sort {$a->[0] cmp $b->[0]} grep { @$_ > 1}
       values %words;
    
  2. or download this
    while (<>) {
        chomp;                                
    ...
    }
    print join "\n", sort grep {tr/ //} values %words;
    print "\n";
    
  3. or download this
    my @array = qw(one two three);
    
    ...
    print "@array";
    # output : 'one two three'
    # it's the same as print join " ", @array;
    
  4. or download this
    #!/usr/bin/perl -w
    
    ...
     string:    5.40
     array :    5.05
    =cut