Help for this page

Select Code to Download


  1. or download this
    sub beautify
    {
    ...
        @stuff{@_} = undef;
        return sort keys %stuff;
    }
    
  2. or download this
    print join ' ',beautify(qw(h e l l o w o r l d)); # prints "d e h l o 
    +r w"
    print join ' ',beautify(qw(b u m b l e b e e));   # prints "b e l m u"
    
  3. or download this
    sub beautify
    {
    ...
        $stuff{$_}++ for(@_);
        return sort { $stuff{$a} <=> $stuff{$b} } keys %stuff;
    }
    
  4. or download this
    print join ' ',beautify(qw(h e l l o w o r l d)); # prints "e w r h d 
    +o l"
    print join ' ',beautify(qw(b u m b l e b e e));   # prints "m u l e b"