in reply to Re: passing variables between subroutines
in thread passing variables between subroutines

You don't need to do anything different if you have only one parameter.

my ($param) = @_;

Remember, you have to use the () there to create list context. Otherwise the @_ will be in scalar context (i.e. number of items in the array).

I prefer this style, because it looks like C, Java, Ruby, etc. It also looks more like math, e.g. f(x, y, z).