my %hash = map { $_ => undef } @array; # Add things to hash like this: $hash{'a'} = undef; $hash{'d'} = undef; # Turn back into list with 'keys' print join(',', sort keys %hash), "\n";
In reply to Re: check element if inside an array
by ctilmes
in thread check element if inside an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |