Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Parsing a text file

by wade (Pilgrim)
on Apr 16, 2008 at 16:50 UTC ( #680861=note: print w/replies, xml ) Need Help??


in reply to Parsing a text file

Other posters have already provided fine solutions so I won't go there but, in general, your code should always include:

use strict; use warnings; use diagnostics; # not strictly necessary but really nice

The other posters did hint at that but I wanted to be more explicit.

Also, in the future it would be especially cool if you would clearly flag homework in the header line.

Hope this helps!

(update: minor clarification mod)
--
Wade

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2023-03-27 17:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (65 votes). Check out past polls.

    Notices?