function foo { my ($bar, $stuff, $blah) = @_; # get the arguments ... }