If I understand correctly, when I assign values to an array
of strings with < ... >
, I should escape special symbols with \
:
> my @array = < \\ a b>
[\ a b]
> my @array = < \< a b>
[< a b]
> my @array = < \<de\< a b>
[<de< a b]
Using backslashes is not always convenient, sometimes the code may become obscure.
Is there a better way to pass a list of strings containing special characters to an array?