I tried removing all newlines (\n
) from the values of a hash:
my %var_h = ( "ID" => " This is Test
This is new line TEST
newline Test end ");
How can I remove all the new lines from the values of %var_h
?
I tried s/\\n//g
but I could not get it to work.