in reply to Perl newbie question.
Are you sure all your params are concatenated in a string? Parameters from the command line were already splitted into separate values when the perl script starts. And function parameters stay separated if they were when you called the function. In those cases a simple scalar @_ will tell you the number of parameters.