in reply to Re: Directory Tree Help!
in thread Directory Tree Help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Directory Tree Help!
by Anonymous Monk on Oct 21, 2010 at 21:20 UTC | |
Tip: "Doesn't work" doesn't work. We already know that it isn't doing what you wanted it to do (since you're having trouble or you wouldn't be here) so that phrase is useless. Instead, say what it actually did (copy and paste the result into code tags rather than typing it tho). Pointing out where things stopped matching what you expect is good too. Including the test results you expected is better. | [reply] |
|
Re^3: Directory Tree Help!
by aquarium (Curate) on Oct 21, 2010 at 22:12 UTC | |
or something along those lines. i'd use word boundary regexes when you need to tokenize whole lines of text into word units or similar. Have you tried at least to use your original regex without the initial word boundary, as per my earlier suggestion? if still not working..it's just a matter of running a single line of code with the regex, directly against any example .pl files you want to try. try and try again, adjusting the regex, until you get results you want. then put this regex in your script. sorry but i don't have regular access to perl as i type, at the moment.
the hardest line to type correctly is: stty erase ^H
| [reply] [d/l] |
by Anonymous Monk on Oct 21, 2010 at 23:18 UTC | |
Here is the code.
Thanks for the help! | [reply] [d/l] |