![]() |
|
more useful options | |
PerlMonks |
Re: If statement seems to ignore elsif and skips to elseby ww (Archbishop) |
on Sep 25, 2017 at 18:56 UTC ( #1200062=note: print w/replies, xml ) | Need Help?? |
Stop at each elsif? Only if you've set breakpoints at each one, I think... but
UPDATE: Miscounted paren pairs. My bad. Warning: these observations arise from a top of head scan of your submission... but can't be taken too seriously, since we have no sample of input ... and can't (from what you've shown) be sure we know what $ThisLine may contain. Lastly, point of personal preference (only? perhaps?): rather than constucting regexen with fixed dots (for any byte), it may make the code clearer to use quantifiers... and precompiled regexen:
untested, but HTH. UPDATE: demonstrates the need to test before posting...and the consequences of failing to do so. My bad again
In Section
Seekers of Perl Wisdom
|
|