use CGI ':standard'; my @foo = qw/foo bar baz/; print p({}, @foo), $/; print p({}, \@foo), $/; __END__
foo bar baz
foo
bar
baz