more useful options | |
PerlMonks |
Re^2: solution wanted for break-on-spaces (w/specifics)by perl-diddler (Chaplain) |
on Oct 26, 2021 at 17:43 UTC ( [id://11138082]=note: print w/replies, xml ) | Need Help?? |
re strict/warnings -- they were their and got deleted as I deleted chunks of template-prefix code...*oops*.
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.
In Section
Seekers of Perl Wisdom
|
|