in reply to Re^2: Perl ignore arrow object operator in search/replace (s/searchregex/replacestring/)
in thread Perl ignore arrow object operator in search/replace
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 "${\ ... }".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl ignore arrow object operator in search/replace (s/searchregex/replacestring/)
by LanX (Saint) on Feb 17, 2014 at 20:16 UTC | |
by tobyink (Canon) on Feb 17, 2014 at 21:11 UTC | |
by Anonymous Monk on Feb 18, 2014 at 00:38 UTC |