Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Find most frequently used word in text file.

by Bloodnok (Vicar)
on Dec 20, 2013 at 09:42 UTC ( #1067939=note: print w/replies, xml ) Need Help??


in reply to Re^2: Find most frequently used word in text file.
in thread Find most frequently used word in text file.

Aha, TFT hdb - good spot - it's early in the morning (for me) and my contexts are somewhat confused :-(

My comment would be applicable if the OP was trying to slurp a file into a scalar, which they aren't. I'm not at all sure i.e. can't remember, if I've yet attempted to slurp a file into a list.

A user level that continues to overstate my experience :-))
  • Comment on Re^3: Find most frequently used word in text file.

Replies are listed 'Best First'.
Re^4: Find most frequently used word in text file.
by Laurent_R (Abbot) on Dec 20, 2013 at 18:16 UTC
    Yes, I used undef $/; because I wanted to slurp the file into a scalar variable (making the subsequent processing slightly simpler). But it would not be necessary to undef $/ in a list context.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1067939]
help
Chatterbox?
talexb admires the shimmering pool after an enjoyable hour-long All Hands meeting spent listening with one ear and reading Perlmonks with the other .. ear.
[talexb]: Used all my votes during that meeting .. been a while since I've done that. Now, back to work. Good localtime, monks!
[Corion]: talexb: You enjoyed the All Hands meeting in the pool?!
[Corion]: I understand "surfing" in the pool ;)
[talexb]: Corion I admired the pool .. I wasn't .. soaking in it. ;)
[talexb]: Plus, I've been awy from PM for about three weeks .. needed a bit of catch-up time.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (14)
As of 2017-07-20 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (304 votes). Check out past polls.