It looks like you're trying to match a sequence of characters that does not include two colons in a row. This should work: s/${pkg}::((?:[^:]+|:(?!:))+)$/$1/; But I wonder if a simpler substitution would be more appropriate here: s/${pkg}:://;
In reply to Re: accessor/mutator with AUTOLOAD
by chipmunk
in thread accessor/mutator with AUTOLOAD
by rpc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |