Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Parsing a Pipe delimied file

by trizen (Hermit)
on Feb 28, 2012 at 15:35 UTC ( #956690=note: print w/ replies, xml ) Need Help??


in reply to Parsing a Pipe delimied file

Something like this?

my $str = 'a|b|c|d|e|f|g|h|i|'; $str =~ s/(?:.*?\|){3}\K/\n/g; print $str; __END__ a|b|c| d|e|f| g|h|i|


Comment on Re: Parsing a Pipe delimied file
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956690]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2015-07-06 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (84 votes), past polls