Lee5
asked on
Remove newlines from string
How can I remove all newlines from a string?
ie:
$a = "whatever including newlines";
$a =~ /whatever without newlines/;
ie:
$a = "whatever including newlines";
$a =~ /whatever without newlines/;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The oops did the trick
$a =~ s/[\r\n]+//;