Hi,
A nice easy one for a Friday afternoon.
I have a variable containing text in which I wish to
convert embedded newlines to spaces. And, I wish to
do this in a way which is portable.
I have come up with:
$tempValue =~ s/\r\n/ /g;
$tempValue =~ s/\n/ /g;
I believe this pair of statements will work on both
Windows and UNIX, and with text originating on both
Windows and UNIX. I welcome improvements.
Also, how do I accommodate Macs?
Many thanks,
Martin
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs