Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Re: What's the most efficient way to write out many lines of data?

by hagen (Friar)
on Jul 10, 2003 at 22:55 UTC ( [id://273187]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: What's the most efficient way to write out many lines of data?
in thread What's the most efficient way to write out many lines of data?

Yup! That did it.

However this is an idiom I'm not familiar with - I've only got the Camel's head here at work (Perl in a Nutshell) and the join entry doesn't expand on it. It's a great example of DWIM!

With my use of the explicit split, as I said, the split file had lines like:-

,XXXXXXXXX,,XXXXXXXXXX,,XXXXXXXXXX,,...

however, when I changed it to your use - even using my beginner's pattern of /(XXXXXXXXXX)/g - it DWIM'd!

If you (or another brother) have time I'd appreciate an "expanded" Perl baby-talk explanation - i.e. put in all the bits that aren't necessary so we can see what's been left out.

I (think I) understand the default $_ as being the input, but it's the use of a pattern to generate list context that's new to me.

Thanks in advance

hagen

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found