Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Data extraction from text file

by Utilitarian (Vicar)
on Aug 09, 2011 at 09:49 UTC ( #919448=note: print w/ replies, xml ) Need Help??


in reply to Data extraction from text file

So you want to

  • open a file
  • read a series of records from the file (No guaranteed unique field, so perhaps an array of arrays? or an array of hashes might be more suitable)
  • Print a fixed field width record from each array entry.
Have a go at coding that and get back to us with any problems you have with your Perl

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."


Comment on Re: Data extraction from text file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2015-07-29 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls