Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Sorting names using Regular Expressions and placing them in different Files.

by jZed (Prior)
on Dec 28, 2006 at 17:40 UTC ( [id://592089]=note: print w/replies, xml ) Need Help??


in reply to Sorting names using Regular Expressions and placing them in different Files.

  1. open the input file, checking for file-open error
  2. open the output files, checking for file-open errors
  3. for each line in the input file
  4. use a regex or split to see if it has the date you want
  5. write it to the appropriate output when appropriate
  6. close the files
Please try to do that yourself and if you have problems, feel free to come back and tell us which steps are giving you problems.
  • Comment on Re: Sorting names using Regular Expressions and placing them in different Files.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-24 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found