Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pattern Matching NEwbie Questions

Status
Not open for further replies.

mm0ckr

Technical User
Nov 28, 2000
8
GB
Hi there,
I am trying to learn Perl at present but am coming very unstuck at pattern matching. I understand the principles but not the syntax or how t use the data matched.

I am trying to read files [.txt & .html] (with permission, from remote server) for inclusion to my site (just the bits I want). I think I would use LWP Simple to get the file, reading it into the $_ variable. I would then match the file for the text I want.

Now here is where the problem starts, some of the files have a fixed length (number of lines) before the real data starts, other have the wanted data in the middle of the file so I would need to define a start and stop point.

My Questions:
Can anybody help me to understand how to pattern match?
Are there any idiot proof (!) tutorials I should read.
 
That is a huge topic... there is a decent intro at
Additionally, while I am not the be all, end all of Perl Pattern Matching, I am working on a FAQ. If you can wait a day or two or three or..... It will be up soon.

'hope the web page helps...

If you have more specific questions, feel free to post them.


keep the rudder amid ship and beware the odd typo
 
Hi goBoating,

Cheers for the reply and Yep can eay wait a day or more - can you let me know when you have it up and going.

I feel I really need to learn this but my intelligence is limited!!

Cheers again
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top