Thread: Perl substrings
View Single Post
Old Dec 13th, 2005, 7:38 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Well, your description of what you need absolutely sucks. If I understand you, I would pull off the seach for the garfled substring by treating '.' and '-' as nonexistent symbols (ignored in comparisons), find the substring, and Bob's yer auntie. If it's homework, and you're explaining it jus' lak de teacher did, run like hell.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote