I'm not following your order, which may be a mistake, but anyway... "The /g on the third line makes that pretty much impossible to combine" is exactly the sort of guidance I was hoping to get.
"single character substitutions are better done with tr///" is not something I have seen documented anywhere. Is this a question of experience, or something I should have found for myself?
When I tried to sort out the backslash following the variable, I think I was trying to put it within the \Q\E part. Is this even possible? Things line \Q\E, quotemeta and qr are an area where my searches have been pretty fruitless. Are they identical? Are there any good docs on them?
A point on which I was expecting correction was another construct I tried to use without success. I have seen (and cargo culted) something like my ($plsname) = $curdir =~ regex;. Would that just mean having different operations on the same number of lines, or is there a better reason why it would be inappropriate here?
Thanks for the help & regards,
John Davies
In reply to Re^2: Combining regexes
by davies
in thread Combining regexes
by davies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |