SPUG: How can I find @1 - @2?

Yitzchak Scott-Thoennes sthoenna at efn.org
Wed Jan 24 19:11:09 PST 2007


> * Ken Clarke <kenslinux at shaw.ca>
>> my %enrolled = map { $_ => 1} @enrolled;
>
> # No map nor 1's floating around in memory.
> my %enrolled; @enrolled{@enrolled} = ();

And changing $enrolled{...} to exists $enrolled{...}


More information about the spug-list mailing list