in reply to how to pass more than one input in perl

Read perlintro. Or a book.

All arguments to a subroutine come in a special list called @_.