bobbybobbertson
Programmer
i have the following string:
$string = "one|two|three\n";
i want to replace the '\n' character with a pipe symbol '|';
for some reason the following does not work.
$string =~ s/\|/\n/;
neither does:
$string =~ s/\|/\\n/;
what do i need to do?
$string = "one|two|three\n";
i want to replace the '\n' character with a pipe symbol '|';
for some reason the following does not work.
$string =~ s/\|/\n/;
neither does:
$string =~ s/\|/\\n/;
what do i need to do?