Help for this page

Select Code to Download


  1. or download this
    my @objects = ();
    my %unique  = map { "$_" => 1 } @objects;
    print sort keys %unique;
    
  2. or download this
    Not enough arguments for map at test.pl line 2, near "} @objects"
    syntax error at test.pl line 2, near "} @objects"
    Execution of test.pl aborted due to compilation errors.
    
  3. or download this
    my %unique  = map { ''.$_ => 1 } @objects;