Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2016-07-01 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (407 votes). Check out past polls.