- or download this
#!/usr/bin/perl -wT
use strict;
...
# warning do not do this
my @ary = $q->param('options') || ();
# this kills the array return of CGI.pm
- or download this
my @fields = qw(foo bar baz);
for (@fields) {
$q->param($_,'') unless defined $q->param($_);
}
- or download this
my @fields = qw (foo bar baz);
for (@fields) {
$USER{$_} = '' unless defined $USER{$_};
}