Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Parsing a Pipe delimied file

by Marshall (Canon)
on Feb 28, 2012 at 16:19 UTC ( [id://956698]=note: print w/replies, xml ) Need Help??


in reply to Parsing a Pipe delimied file

One way...I guess this is one huge line of input..
#!/usr/bin/perl -w use strict; $/="|"; print $_.<DATA>.<DATA>."\n" while (<DATA>); =prints: a|b|c| d|e|f| g|h|i| =cut __DATA__ a|b|c|d|e|f|g|h|i|

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 03:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found