Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: I don't understand why I'm getting an unitialized value warning

by plaid (Chaplain)
on Apr 13, 2000 at 01:21 UTC ( #7426=note: print w/replies, xml ) Need Help??


in reply to I don't understand why I'm getting an unitialized value warning

Here I'm assuming chromatic's assessment of the code is correct (that \n\n is the record delimiter). This isn't particularly useful, but I like ugly one-liners:)
perl -an0777 -F"\n\n" -e 'END { print "There are ", scalar @F, " recor +ds in $ARGV\n" }' foo.txt
  • Comment on Re: I don't understand why I'm getting an unitialized value warning
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2022-05-24 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?