Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    my(%hash,$i);
    @hash{map($i++.":$_", <>)} = ();
    print "$_\n" for map /^\d+:(.*)/, keys %hash;
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    my(%hash,$i);
    @hash{map join(":", $i++, int rand $i, $_), <>} = ();
    print "$_\n" for map /^\d+:\d+:(.*)/, keys %hash;