The arrow operator works in strings for dereferencing hash and array elements, but not for calling coderefs, and not for method calls.
As well as the "@{[ ... ]}" trick, another option is "${\ ... }".
In reply to Re^3: Perl ignore arrow object operator in search/replace (s/searchregex/replacestring/)
by tobyink
in thread Perl ignore arrow object operator in search/replace
by fouinix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |