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

Ken Clarke kenslinux at shaw.ca
Wed Jan 24 18:14:13 PST 2007


RE: SPUG: How can I find @1 - @2?my %enrolled = map { $_ => 1} @enrolled;
my @not_enrolled = grep { not $enrolled{$_} } @students;

The more you work with map and grep, the easier it is to see simple 
solutions.
 



More information about the spug-list mailing list