in reply to input special characters
Depending on what you mean by "input", be sure to put your separator in double quotes, not single quotes.
my @data = ("a", "b", "c"); say join "\t", @data; say join '\t', @data;
prints:
$ perl test.pl a b c a\tb\tc $
See perlop's section on quotes and quote-like operators.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: input special characters
by kepler (Scribe) on Jul 13, 2014 at 10:40 UTC | |
by AppleFritter (Vicar) on Jul 13, 2014 at 11:49 UTC | |
by kepler (Scribe) on Jul 13, 2014 at 12:44 UTC | |
by AppleFritter (Vicar) on Jul 13, 2014 at 15:09 UTC |