in reply to Re^4: Global substitution of non-base-plane Unicode characters
in thread Global substitution of non-base-plane Unicode characters
If "the value of $\ is later changed" was a genuine concern, a better way would be to explicitly code the following rather than expecting a subsequent maintainer to automatically realise why printf was used here:
... { local $\; print "\x{FEFF}"; } ...
And, of course, a much better way to change $\ in the middle of the program, would be along these lines:
... code as it is now ... # later changes: ... { local $\ = "\n"; ... code using changed $\ ... } ...
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Global substitution of non-base-plane Unicode characters
by pjfarley3 (Initiate) on Feb 24, 2014 at 04:44 UTC | |
|
Re^6: Global substitution of non-base-plane Unicode characters
by Jim (Curate) on Feb 24, 2014 at 17:43 UTC | |
by kcott (Archbishop) on Feb 25, 2014 at 00:30 UTC |