in reply to Arrays with CGI perl help

qw/STRING/ does not do what you think it does (it does not interpolate variables)
If you are trying to split on whitespace in the appname field, try my @apps = split '\s+', $form{'AppName'};

Replies are listed 'Best First'.
Re^2: Arrays with CGI perl help
by ikegami (Patriarch) on Jun 24, 2009 at 16:11 UTC
    The actual equivalent would be
    my @apps = split ' ', $form{'AppName'};

    The difference is in how they treat leading spaces. See split

    $ perl -le'print 0+( @a = qw( a b c ) )' 3 $ perl -le'print 0+( @a = split /\s+/, " a b c " )' 4 $ perl -le'print 0+( @a = split " ", " a b c " )' 3
      Thanks everyone!