in reply to Re: Re^2: Passing switches through pl2bat scripts
in thread Passing switches through pl2bat scripts

In my example, the "%~dpnx0" is the equivalent of filename.pl in your example, so the -z should be passed through. My question has been answered, though, I was misled by the documentation of getopt() and am now using getopts() instead.
  • Comment on Re^4: Passing switches through pl2bat scripts