Ignoring escape characters in perl -
my %result = "\\path\tfolder\file.txt";
how can ignore \t escape sequence without prepending '\'. there like:
my %result = r"\\path\tfolder\file.txt";
the above doesn't work.
single quotes process 2 escape sequences: \\
, \'
, have double leading double-backslash not others:
my $result = '\\\\server\toppath\files';
to want, use here-document @ cost of syntactic bulk.
chomp(my $result = <<'eopath'); \\server\toppath\files eopath
note change of sigil %
$
because string scalar, , hashes associations.
Comments
Post a Comment