Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: matching substrings on each line

by BrowserUk (Pope)
on Oct 08, 2012 at 06:24 UTC ( #997746=note: print w/replies, xml ) Need Help??


in reply to matching substrings on each line

C:\test>perl -anlE"my@l=split'(?<=-)',$F[0];my%r;$r{$_}=1 for split'( +?<=-)',$F[1];say $_.' '.@l.' '.keys(%r).' '.grep defined, @r{@l}" jun +k.dat a_12_3_5- k_3_4_6-a_12_3_5- 1 2 1 q_1_5_7_9- q_1_5_7_9- 1 1 1 a_9_4_5-c_3_4_6- c_3_4_6-r_4_5_7- 2 2 1 b_1_1_3- v_1_5_7- 1 1 0 d_12_4_5-e_4_5_6- g_5_6_7-d_6_8_6- 2 2 0 b_1_1_7-f_3_8_7_8-d_4_1_4- d_4_1_5-b_1_1_7-f_3_8_3 3 3 1 b_1_1_7-f_3_8_7_8-d_4_1_4- e_3_3_1-f_3_8_7-f_21_3_1-b_1_1_7-a_1_1_1- 3 + 5 1

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997746]
help
Chatterbox?
[choroba]: fortunately, I haven't the need to verify this
[choroba]: haven't had
[choroba]: but most tourist here are form the US, France, and Russia
[Your Mother]: The best whiskey in Thailand is Vietnamese, is all I know.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2017-02-26 04:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (371 votes). Check out past polls.