darklord_999 has asked for the wisdom of the Perl Monks concerning the following question:
I have a file with the values like below:
9454958459|54|AWC XXX|B\|T\|MIN\|MAX\|Air Tree Reg 250 Min|Any(AT)|455|9966004325|..... and so on
I want to split it in a way so that I can get the output into an array with values like below
9454958459
54
AWC XXX
B\|T\|MIN\|MAX\|Air Tree Reg 250 Min
455
9966004325
and so on
How can I use the split function in perl to achieve this ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split function for | and \| delimiter
by moritz (Cardinal) on May 25, 2012 at 18:39 UTC | |
by xorl (Deacon) on May 25, 2012 at 18:52 UTC | |
by darklord_999 (Acolyte) on May 25, 2012 at 19:16 UTC | |
by toolic (Bishop) on May 25, 2012 at 19:22 UTC | |
by darklord_999 (Acolyte) on May 25, 2012 at 19:30 UTC |