Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Parsing file and joining content into string

by Old_Gray_Bear (Bishop)
on Jan 15, 2013 at 18:20 UTC ( #1013436=note: print w/ replies, xml ) Need Help??


in reply to Parsing file and joining content into string

Take a look at the special variable $/ AKA $INPUT_RECORD_SEPARATOR. If you set it to 'END', then your read will return all the data a paragraph at a time. Slice 'n' dice of the paragraph is left as an exercise.

----
I Go Back to Sleep, Now.

OGB


Comment on Re: Parsing file and joining content into string
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2015-07-06 06:19 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 (70 votes), past polls