There's more than one way to do things | |
PerlMonks |
Shell Script Woesby Limbic~Region (Chancellor) |
on Jan 02, 2003 at 21:59 UTC ( [id://223874]=perlquestion: print w/replies, xml ) | Need Help?? |
Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:
All:
I am in the process of converting a lot of shell scripts to Perl. I am having a problem with the following:
This isn't the entire script, but it is in a continual loop.
Some of the limitations of the shell script implementation are:
I came up with the following (with help from the CB) as a start (code doesn't exactly match)
The final product will store the time stamp of the traplist file and only update on change and fix the obvious errors, but I am more concerned with the raw functionality. What I am trying to accomplish is the following:
What I can't do is:
I originally envisioned what I do when I do a word search. You scan using your finger until you come across a letter that starts a word you are looking for. You follow it until you get a match or until you realize it is a dead end. If it is a dead end, you keep on going having forgot everything that came before. Unfortunately, I don't believe there is a way to tell RegEx to start paying attention on a partial match. Any ideas?
Back to
Seekers of Perl Wisdom
|
|