Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 ( #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


Comment on Re: Re: Re: Re: What's the most efficient way to write out many lines of data?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-09-20 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (151 votes), past polls