Nansh has asked for the wisdom of the Perl Monks concerning the following question:
BOOK_Author AYN RAND, ERNEST HEMINGWAY, JOAN DIDION
+RAY BRADBURY, GEORGE R.R. MARTIN
+GILLIAN FLYNN
Famous_singer Linkinpark, Lilwayne, Nikiminaj,
+seanpaul, Akon, Tpain
+Emenim
DESIRED OUTPUT@authors=AYN RAND,ERNEST HEMINGWAY,JOAN DIDION,RAY BRADBURY,GEORGE R.R.MARTIN,GILLIAN FLYNN
@singer=sLinkinpark,Lilwayne,Nikiminaj,seanpaul,Akon,Tpain,Emenim
I need to match the AUTHORS and SINGERS from different lines and need to put them in a respective array say @authors and @singers. I tried alot. I couldnt do that so please anyone help me to solve this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help Me to Sort out from this
by davido (Cardinal) on Mar 17, 2017 at 04:54 UTC | |
|
Re: Help Me to Sort out from this
by Laurent_R (Canon) on Mar 17, 2017 at 10:04 UTC | |
|
Re: Help Me to Sort out from this
by madtoperl (Hermit) on Mar 17, 2017 at 13:12 UTC | |
by Nansh (Acolyte) on Mar 21, 2017 at 09:33 UTC | |
by Corion (Patriarch) on Mar 21, 2017 at 09:41 UTC | |
by hippo (Archbishop) on Mar 21, 2017 at 09:52 UTC | |
by huck (Prior) on Mar 21, 2017 at 10:23 UTC |