Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Textarea boxes in CGI

by cLive ;-) (Prior)
on Jun 17, 2003 at 19:18 UTC ( [id://266605]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Textarea boxes in CGI
in thread Textarea boxes in CGI

Here are a couple of succinct methods:
my $ta = param('textbox'); $ta =~ s/\r?\n//g; print $ta; # or if you really want an array: my @v = split /\r?\n/, param('textbox');
I'm not 100% sure whether *all* browsers will send the \r, hence the ? in the regex.

.02

cLive ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://266605]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 23:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found