in reply to Interpretting character combinations as special characters.
$text = 'h\te\nll\t\(o\)\n'; print "$text\n"; $text = eval '"'.$text.'"'; print "$text\n";
If not already escaped, you probably have to escape backslashes, double quotes, dollar signs, and some other special chars... Don't know what is worst!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Interpretting character combinations as special characters.
by music_man1352000 (Novice) on Dec 10, 2009 at 13:32 UTC | |
Re^2: Interpretting character combinations as special characters.
by afoken (Chancellor) on Dec 10, 2009 at 20:12 UTC | |
by vitoco (Hermit) on Dec 11, 2009 at 18:27 UTC |
In Section
Seekers of Perl Wisdom