Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^4: putting text into array word by word

by jms53 (Monk)
on Jan 10, 2012 at 19:46 UTC ( #947223=note: print w/replies, xml ) Need Help??

in reply to Re^3: putting text into array word by word
in thread putting text into array word by word

Far from me to accuse your code, rather I'm thankful for showing it to me, it's just that while Perl is a great language for coding (and damn logical on its syntax), there are far too many elements that still appear extremely obscure to me. My main issue was that you didn't seem to have a handle <FILE> which I assumed to be a requirement for reading files, and then this line:

 my @words = split /\W+/, do { local $/ = <$infile> };

thank you very much however for explaining the local scope of $/. that will most certainly come in handy in the upcoming term.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://947223]
[LanX]: Kraftwerk? I can also go to a mall watching dolls ..
[Corion]: johngg: I don't expect much in the sense of interaction with the audience, but it should be a good show...
[johngg]: Corion: yes, there was not much movement on stage, they just stood behing their instruments and went through the set. The music was good though!
[johngg]: And it was loud - the only gig I've been to that was louder (painfully so) was Dr. Feelgood in a pub in Southend - awesome!
[marto]: Dr. Feelgood in a pub, that must have been a while ago

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-03-24 12:00 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.