in reply to Passing variables into a subroutine

You don't tell us how it fails for you (besides the obvious syntax error).

Perl flattens passed parameters into @_. perlsub explains some more of that.