in reply to Textarea boxes in CGI
This puts everything in UNIX-style line endings.s/\r\n/\n/g; s/\r/\n/g;
You could also do this in your split:
; this is probably a little faster, and saves you a chomp.split(/\r\n|\r|\n/,$s)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Textarea boxes in CGI
by edoc (Chaplain) on Jun 18, 2003 at 07:27 UTC | |
|
Re: Re: Textarea boxes in CGI
by eweaverp (Scribe) on Jun 18, 2003 at 17:36 UTC |