narse has asked for the wisdom of the Perl Monks concerning the following question:
Within the script, hidden() seems to forget everything after and including the first :. If I change the hidden() to Dumper, the correct stuff is displayed in the browser window, showing that $file is properly defined. Running the script from the comamnd line also returns the bad results so it isn't specifically a browser problem. What is strange is that if I run:defined $param{selected} ? ( $param{selected} .= ":$file" ) : ( $param{selected} = $file ); join ( "", map { hidden ( -name => $_, -default => $param{$_}, ) } keys %param )
hidden() seems to do the right thing.perl -le 'use CGI qw/ :standard /; print hidden( -name => "foo", -defa +ult => "foo:bar" )'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: :-delimited lists in CGI parameters
by Ovid (Cardinal) on Mar 29, 2004 at 21:10 UTC | |
|
Re: :-delimited lists in CGI parameters
by tinita (Parson) on Mar 30, 2004 at 08:53 UTC | |
|
Re: :-delimited lists in CGI parameters
by PodMaster (Abbot) on Mar 29, 2004 at 21:14 UTC | |
by narse (Pilgrim) on Mar 29, 2004 at 21:29 UTC | |
|
Re: :-delimited lists in CGI parameters
by eric256 (Parson) on Mar 29, 2004 at 22:09 UTC |