martymart has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that while the first line displays fine, all the subsequent lines are shifted to the right by one space. I think it may be because the array is in between quotation marks (I could be wrong though!). However, when I get rid of the quotation marks it really messes up the order of the elements in the array. It seems to display to the text area like this:use CGI; $co=new CGI; #some code here $co->center($co->textarea ( -name=>'textarea', -default=>"@source", -rows=>20, -columns=>80, )), #other code here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Displaying an array in a cgi generated textarea
by fruiture (Curate) on Feb 27, 2003 at 18:18 UTC | |
by martymart (Deacon) on Feb 27, 2003 at 18:31 UTC | |
|
Re: Displaying an array in a cgi generated textarea
by pfaut (Priest) on Feb 27, 2003 at 18:25 UTC |