in reply to Unexpected behavior after passing $query-param('bar') as subroutine parameter
You are using a list context, and using the result in a list, so an empty list disappears. Had there been multiple elements, you'd be messed up the other way, in that your later parameters would have been pushed out of place the other way.
I'd rewrite that code as:
makeMenuInput(scalar $query->param('category'), scalar $query->param(' +subcategory'),"allon");
-- Randal L. Schwartz, Perl hacker
|
|---|