Sure, just write parens in their precedence-adjusting role: ($dirfilename = $url) =~ s|\Qhttp://foo.bar.com/\E||; Your substitution is corrected here for the presence of re metacharacters.
After Compline,
Zaxo
In reply to Re: Assign & substitute in one statement?
by Zaxo
in thread Assign & substitute in one statement?
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |