in reply to Batch FIle Operations

This is not a question about Perl but about the shell you're starting Perl from. Most likely, you are using cmd.exe under Windows, so you can pass in parameters to your script by using %*, which are all the parameters given to your batch file:

perl -w filename.pl %*