Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    $_ = shift;
    
    print"$_ is",(grep$_>1,map++$c{$_},split//)?"n't":'',' an isogram';
    
  2. or download this
    $ perl isogram.pl greet
    greet isn't an isogram
    ...
    
    $ perl isogram.pl discrete
    discrete isn't an isogram
    
  3. or download this
    sub is_iso {
    (grep$_>1,map++$c{$_},split//,shift)?1:0
    ...
    $_ = shift;
    print "$_ is", ( is_iso($_)? "n't" : '' ), ' an isogram';
    
  4. or download this
    s**lil*;  $*=join'',sort split q**;  s;.*;grr; &&s+(.(.)).+$2$1+; $; =
    qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)