in reply to Re: Parsing cgi variable lists
in thread Parsing cgi variable lists

In the future (and in general cases where data structure isn't known), a simple
use Data::Dumper; warn Dumper \%ARGS; warn Dumper $ARGS{LineItem};
would have show that it was an array ref, leading immediately to the @{$ARGS{LineItem}} solution.

Also, in mason you can do this:
<%args> $LineItem=>[] </%args> <%init> warn join ":", @$LineItem; ... </%init>
That takes care of the case where just one LineItem form element exists. Using that syntax, you'll still get an array ref. Using the above $ARGS{LineItem} syntax you'll get a scalar, which will make the @{$ARGS{LineItem}} solution error out.