Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: joining lines

by darksym (Beadle)
on Apr 23, 2002 at 14:56 UTC ( #161329=note: print w/replies, xml ) Need Help??


in reply to joining lines

One strategry is to simply avoid rejoining them and parse on the |. That way newlines wouldn't matter. You can try changing the field seperator and see if it doesn't take care of this all for you, or you could use split or a regex across multiple lines not taking into account the \n character to grab your fields.

It appears as though you are going 4 fields to a record with the field seperator of '|'.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2021-10-28 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (96 votes). Check out past polls.

    Notices?