B
Brian McCauley
The delimiter needs to be converted before use. If you don't mind
cheating, you could do this:
$delimiter = eval("\"$delimiter\"");
(Mumia ducks)
Wise
Okay, sorry about that. "Eval" is evil I know. You could also do this:
$delimiter =~ s/^\\//;
$delimiter = chr oct $delimiter;
However, that can't deal with delimiters specified in hex on the command
line.
The solution I posted (Sat, 06 Oct 2007 17:46:15 -0000) covers all
possibilities but I'm not 100% convinced that my escaping of ["$@]
characters would be sufficient to prevent a determined attacker from
exploiting the eval.