Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

je44ery's scratchpad

by jffry (Hermit)
on Jul 15, 2008 at 21:17 UTC ( [id://697804]=scratchpad: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat A; echo '* * * * *'; cat B
    apple
    ...
    lime
    orange
    banana
    
  2. or download this
    $ perl -e 'open F,$ARGV[0] or die;shift;my %set = map {$_ => 1 } <>; f
    +or (<F>) {print if $set{$_}};' A B
    lime
    
  3. or download this
    $ perl -e 'open F,$ARGV[0] or die;shift;my %set = map {$_ => 1 } <>; f
    +or (<F>) {print unless $set{$_}};' A B
    apple
    cherry
    carrot
    
  4. or download this
    $ cat C
    grape
    ...
    $ perl -e 'open F,$ARGV[0] or die;shift;my %set = map {$_ => 1 } <>; f
    +or (<F>) {print if $set{$_}};' A B C
    cherry
    lime
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-23 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found