[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Wanted - Have = Need



This looks like a nice game of golf...

I have a file full of things I have and a file full of things I want, and
I want a list of things I still need to build (that which is in the wanted
list but not the have list.)

open( HAVE, "have");
%Have = map {$_=>1} <HAVE>;
close HAVE;
open( WANTED, "wanted");
print grep { !exists( $Have{$_})} <WANTED>;
close WANTED;


John Carter

Work Email : john@netsys.co.za Private email : cyent@mweb.co.za 
Yell Phone : 083-543-6915      Phone         : 27-12-348-4246

Carter's Compass...

   I know I'm on the right track when by deleting code I'm adding
   functionality.
                  


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe