Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Difficulty using $/ as delimiter

by mbethke (Hermit)
on Jun 09, 2012 at 17:51 UTC ( [id://975323]=note: print w/replies, xml ) Need Help??


in reply to Difficulty using $/ as delimiter

If I understand this correctly, you have a file with multi-line records terminated by '//\n'. Like this?
1 2 3// foo bar baz//
Then when you change $/ to your record separator, the diamond operator will give you a whole record. And now you need the individual lines within each? I'd say just split on /\n/, but I have a feeling that's not exactly what you wanted. Can you clarify?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-24 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found