Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Reply to Thread

Post a reply to the thread: in PERL how to parse only what I want to see?

Your Message

Click here to log in

How many letters in the word Rabroad

 
 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Rate Thread

You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.

Topic Review (Newest First)

  • 04-01-2013, 01:00 PM
    Gary

    in PERL how to parse only what I want to see?

    Here is an example of something in a txt file:

    5/4 team1 10 team2 7
    5/4 team7 24 team4 17
    5/4 team3 15 team5 12
    5/11 team2 8 team5 20
    5/11 team4 10 team3 23
    5/11 team1 19 team7 3

    I would like to be able to parse the teams, like this for team4:

    5/4 team7 24 team4 17
    5/11 team4 10 team3 23

    In unix I used to simply use a GREP to do this kind of stuff but I don't know enough about PERL to do this.

    Any ideas?
    I tried all of the scripts that you provided. I must be doing something wrong. None of them gave anything back. I changed the name to cgi but that didn't help it either. Any ideas?

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •