Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Perl beginnere

by kennethk (Monsignor)
on Feb 13, 2013 at 17:44 UTC ( #1018587=note: print w/ replies, xml ) Need Help??


in reply to Perl beginnere

Some useful starting information:

  1. Files and I/O in perlintro talks about how to open and read a file.
  2. You need to define what you mean by a 'word'. I know that sounds a bit strange at first, but that will control how you split your sentences up.
  3. length and split will probably be very useful functions, though you may use other variants on regular expressions for the line parsing.
  4. For all word counts, you'll definitely want to use a hash.

Post code that you've written, and we'll be happy to give both syntactic and stylistic feedback. However, we're here to help you learn, and learning generally takes a lot of work on your part. See How do I post a question effectively?.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: Perl beginnere

Log In?
Username:
Password:

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

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

    For retirement, I am banking on:










    Results (72 votes), past polls