Help for this page

Select Code to Download


  1. or download this
    sub uniq
    {
    ...
    
    print uniq 0,0,1,2;         # good: prints 0,1,2
    print sort uniq 0,0,1,2;    # bad:  prints 0,0,1,2
    
  2. or download this
    print sort uniq(0,0,1,2);
    
  3. or download this
    print sort grep {1} uniq 0,0,1,2;