in reply to Re: solution wanted for break-on-spaces (w/specifics)
in thread solution wanted for break-on-spaces (w/specifics)
Test::More is what I use for testing not random development -- Test::More is a heavy-weight solution for testing a few example RE's against lines in a file.
prototypes -- avoid? only when I need to avoid them to make it work. Most of my prototypes are documentary -- in that I put them on Class-methods where they aren't used, with the expectation that the "this" ptr doesn't count.
localising $_ -- I localise it if I change it's value in a sub -- I don't want to create side effects. In code cleanup I'll often replace them with "my $var"s.
capture groups -- don't think there were any such that I didn't use. I use (?:...) if I don't use the result.
Avoid P? If I don't use it, who would? ;-)
As for being able to 'help' me -- I'm beyond help, but anyone who tried to write a regex seemed to have no problem giving me clues about things that worked or things to try.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: solution wanted for break-on-spaces (w/specifics)
by hippo (Archbishop) on Oct 26, 2021 at 21:47 UTC |