Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: extracting dissimilar lines

by trizen (Hermit)
on Mar 26, 2012 at 18:28 UTC ( #961725=note: print w/replies, xml ) Need Help??


in reply to extracting dissimilar lines

use 5.010; while (<>) { my $p = /=/p ? ${^POSTMATCH} : next; next if (my $c = <>) =~ /=/p and $p eq ${^POSTMATCH}; say $_, $c; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://961725]
help
Chatterbox?
[SuicideJunkie]: spies would want a system to not be able to audit.
[erix]: spies should use a type-writer, no power needed, no auditable
[erix]: if all else fails, eat the paper
[erix]: a few years ago there was suddenly the news that the Kremlin was using typewriters again. Heard nothing about it afterward

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-06-23 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (555 votes). Check out past polls.