good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: between pattern search not workingby roboticus (Chancellor) |
on Jan 15, 2015 at 12:44 UTC ( [id://1113328]=note: print w/replies, xml ) | Need Help?? |
The second line of your program probably doesn't do what you think it does. As for the remainder of the program, I can't make heads or tails of it with your crazy indentation. If you indent your code properly, it makes it easier to figure out what's going on inside, but I don't feel like downloading your code, reformatting it and then debugging it to find out what's happening. Since you're trying to get the text between two strings (possibly repeatedly), I'd suggest doing it this way: read the file as a single string, then split it apart at the dashed line. For the remaining lines, ignore any that don't have the create string in it and print everything after the string. Something like this (untested):
...roboticus Coding with random whitespace is like trying to run a race in clown shoes.
In Section
Seekers of Perl Wisdom
|
|