in reply to Re: Passing switches through pl2bat scripts
in thread Passing switches through pl2bat scripts
@rem = '--*-Perl-*-- @echo off perl -x -S "%~dpnx0" -z %* goto endofperl @rem '; #!perl use Getopt::Std; print join(' ',@ARGV)."\n"; my %opts = (); getopt('z', \%opts); print "z found\n" if $opts{'z'}; __END__ Results: C:\>x -z C:\>x -z -z -z z found :endofperl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: Passing switches through pl2bat scripts
by ptkdb (Monk) on Nov 17, 2003 at 15:43 UTC | |
by PhilHibbs (Hermit) on Nov 18, 2003 at 09:44 UTC |