Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.140
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
xampp /
perl /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
SOAPsh.bat
3.35
KB
-rwxrwxrwx
2021-01-24 18:08
SOAPsh.pl
2.75
KB
-rw-rw-rw-
2021-01-24 18:01
bdf2gdfont.bat
5.26
KB
-rwxrwxrwx
2021-01-24 18:08
bdf2gdfont.pl
4.75
KB
-rw-rw-rw-
2021-01-24 17:46
chartex
5.67
KB
-rw-rw-rw-
2021-01-24 18:01
chartex.bat
6.47
KB
-rwxrwxrwx
2021-01-24 18:08
config_data
7.2
KB
-rw-rw-rw-
2021-01-24 18:01
config_data.bat
7.73
KB
-rwxrwxrwx
2024-07-26 17:42
corelist.bat
15.75
KB
-rwxrwxrwx
2023-11-19 11:41
cpan
8.06
KB
-rw-rw-rw-
2021-01-24 18:01
cpan-mirrors
4.18
KB
-rw-rw-rw-
2021-01-24 18:01
cpan-mirrors.bat
5.1
KB
-rwxrwxrwx
2021-01-24 18:08
cpan-outdated
8.85
KB
-rw-rw-rw-
2021-01-24 18:01
cpan-outdated.bat
9.67
KB
-rwxrwxrwx
2021-01-24 18:08
cpan.bat
9.16
KB
-rwxrwxrwx
2021-01-24 18:08
cpan2dist
21.22
KB
-rw-rw-rw-
2021-01-24 18:01
cpan2dist.bat
22.39
KB
-rwxrwxrwx
2021-01-24 18:08
cpandb
6.6
KB
-rw-rw-rw-
2021-01-24 18:01
cpandb.bat
7.37
KB
-rwxrwxrwx
2021-01-24 18:08
cpanel_json_xs
9.75
KB
-rw-rw-rw-
2021-01-24 18:01
cpanel_json_xs.bat
10.58
KB
-rwxrwxrwx
2021-01-24 18:08
cpanfile-dump
3.45
KB
-rw-rw-rw-
2021-01-24 16:20
cpanfile-dump.bat
4.08
KB
-rwxrwxrwx
2021-01-24 18:08
cpanm
295.67
KB
-rw-rw-rw-
2021-01-24 16:36
cpanm.bat
297.23
KB
-rwxrwxrwx
2021-01-24 18:08
cpanp
3.22
KB
-rw-rw-rw-
2021-01-24 18:01
cpanp-run-perl
459
B
-rw-rw-rw-
2021-01-24 16:38
cpanp-run-perl.bat
990
B
-rwxrwxrwx
2021-01-24 18:08
cpanp.bat
3.84
KB
-rwxrwxrwx
2021-01-24 18:08
crc32
1.01
KB
-rw-rw-rw-
2021-01-24 18:01
crc32.bat
1.57
KB
-rwxrwxrwx
2021-01-24 18:08
dbicadmin
7
KB
-rw-rw-rw-
2021-01-24 18:01
dbicadmin.bat
7.87
KB
-rwxrwxrwx
2021-01-24 18:08
dbilogstrip
1.39
KB
-rw-rw-rw-
2021-01-24 17:15
dbilogstrip.bat
1.89
KB
-rwxrwxrwx
2021-01-24 18:08
dbiprof
6.31
KB
-rw-rw-rw-
2021-01-24 17:15
dbiprof.bat
6.82
KB
-rwxrwxrwx
2021-01-24 18:08
dbiproxy
5.44
KB
-rw-rw-rw-
2021-01-24 17:15
dbiproxy.bat
5.95
KB
-rwxrwxrwx
2021-01-24 18:08
enc2xs
40.68
KB
-rw-rw-rw-
2021-01-24 18:01
enc2xs.bat
42.87
KB
-rwxrwxrwx
2021-01-24 18:08
encguess
2.91
KB
-rw-rw-rw-
2021-01-24 18:01
encguess.bat
3.8
KB
-rwxrwxrwx
2021-01-24 18:08
exe_update.bat
4.71
KB
-rwxrwxrwx
2021-01-24 18:08
exe_update.pl
4.05
KB
-rw-rw-rw-
2021-01-24 18:01
exetype.bat
3.53
KB
-rwxrwxrwx
2021-01-24 18:08
extract_vba
2.98
KB
-rw-rw-rw-
2021-01-24 18:01
extract_vba.bat
3.62
KB
-rwxrwxrwx
2021-01-24 18:08
factor.bat
3.77
KB
-rwxrwxrwx
2021-01-24 18:08
factor.pl
3.16
KB
-rw-rw-rw-
2021-01-24 18:01
findrule
3.24
KB
-rw-rw-rw-
2021-01-24 16:52
findrule.bat
3.88
KB
-rwxrwxrwx
2021-01-24 18:08
h2ph.bat
30.27
KB
-rwxrwxrwx
2024-07-26 17:42
h2xs.bat
62.43
KB
-rwxrwxrwx
2024-07-26 17:42
htmltree
1.28
KB
-rw-rw-rw-
2021-01-24 18:01
htmltree.bat
1.81
KB
-rwxrwxrwx
2024-07-26 17:42
hypnotoad
1.03
KB
-rw-rw-rw-
2021-01-24 16:59
hypnotoad.bat
1.58
KB
-rwxrwxrwx
2021-01-24 18:08
instmodsh
4.09
KB
-rw-rw-rw-
2021-01-24 18:01
instmodsh.bat
5.03
KB
-rwxrwxrwx
2021-01-24 18:08
json_pp
4.77
KB
-rw-rw-rw-
2021-01-24 18:01
json_pp.bat
5.52
KB
-rwxrwxrwx
2024-07-26 17:42
json_xs
6.84
KB
-rw-rw-rw-
2021-01-24 18:01
json_xs.bat
7.6
KB
-rwxrwxrwx
2021-01-24 18:08
kwalitee-metrics
2.34
KB
-rw-rw-rw-
2021-01-24 18:01
kwalitee-metrics.bat
2.96
KB
-rwxrwxrwx
2021-01-24 18:08
libgcc_s_seh-1.dll
74.5
KB
-rw-rw-rw-
2019-03-14 23:36
libnetcfg.bat
16.88
KB
-rwxrwxrwx
2024-07-26 17:42
libstdc++-6.dll
1.36
MB
-rw-rw-rw-
2019-03-14 23:36
libwinpthread-1.dll
51
KB
-rw-rw-rw-
2019-03-14 23:36
llw32helper.bat
4.8
KB
-rwxrwxrwx
2021-01-24 18:08
llw32helper.pl
4.13
KB
-rw-rw-rw-
2021-01-24 17:51
lwp-download
10.04
KB
-rw-rw-rw-
2021-01-24 18:01
lwp-download.bat
10.88
KB
-rwxrwxrwx
2021-01-24 18:08
lwp-dump
2.64
KB
-rw-rw-rw-
2021-01-24 18:01
lwp-dump.bat
3.26
KB
-rwxrwxrwx
2021-01-24 18:08
lwp-mirror
2.35
KB
-rw-rw-rw-
2021-01-24 18:01
lwp-mirror.bat
2.96
KB
-rwxrwxrwx
2021-01-24 18:08
lwp-request
15.81
KB
-rw-rw-rw-
2021-01-24 18:01
lwp-request.bat
16.88
KB
-rwxrwxrwx
2021-01-24 18:08
mech-dump
4.74
KB
-rw-rw-rw-
2021-01-24 18:01
mech-dump.bat
5.44
KB
-rwxrwxrwx
2021-01-24 18:08
minicpan
5.36
KB
-rw-rw-rw-
2021-01-24 18:08
minicpan.bat
6.05
KB
-rwxrwxrwx
2021-01-24 18:08
module-version
2.06
KB
-rw-rw-rw-
2021-01-24 17:51
module-version.bat
2.65
KB
-rwxrwxrwx
2021-01-24 18:08
mojo
408
B
-rw-rw-rw-
2021-01-24 16:59
mojo.bat
953
B
-rwxrwxrwx
2021-01-24 18:08
moose-outdated
427
B
-rw-rw-rw-
2021-01-24 18:01
moose-outdated.bat
977
B
-rwxrwxrwx
2021-01-24 18:08
morbo
2.15
KB
-rw-rw-rw-
2021-01-24 16:59
morbo.bat
2.72
KB
-rwxrwxrwx
2021-01-24 18:08
mymeta-cpanfile
2.7
KB
-rw-rw-rw-
2021-01-24 16:20
mymeta-cpanfile.bat
3.32
KB
-rwxrwxrwx
2021-01-24 18:08
nssm_32.exe
288
KB
-rwxrwxrwx
2021-01-24 16:50
nssm_64.exe
323.5
KB
-rwxrwxrwx
2021-01-24 16:50
package-stash-conflicts
463
B
-rw-rw-rw-
2021-01-24 18:01
package-stash-conflicts.bat
1013
B
-rwxrwxrwx
2021-01-24 18:08
parinstallppd
3.35
KB
-rw-rw-rw-
2021-01-24 18:01
parinstallppd.bat
3.99
KB
-rwxrwxrwx
2021-01-24 18:08
perl.exe
39
KB
-rwxrwxrwx
2021-01-24 16:06
perl5.32.1.exe
39
KB
-rwxrwxrwx
2021-01-24 16:06
perl532.dll
3.26
MB
-rw-rw-rw-
2021-01-24 16:07
perlbug.bat
46.8
KB
-rwxrwxrwx
2024-07-26 17:42
perldoc.bat
1016
B
-rwxrwxrwx
2023-11-19 11:41
perlglob.bat
1.95
KB
-rwxrwxrwx
2021-01-24 18:08
perlglob.exe
17
KB
-rwxrwxrwx
2021-01-24 16:01
perlivp.bat
11.72
KB
-rwxrwxrwx
2024-07-26 17:42
perlthanks.bat
46.8
KB
-rwxrwxrwx
2024-07-26 17:42
perltidy
175.27
KB
-rw-rw-rw-
2021-01-24 18:01
perltidy.bat
180.32
KB
-rwxrwxrwx
2021-01-24 18:08
pgplet
10.37
KB
-rw-rw-rw-
2021-01-24 18:01
pgplet.bat
11.22
KB
-rwxrwxrwx
2021-01-24 18:08
piconv
8.07
KB
-rw-rw-rw-
2021-01-24 18:01
piconv.bat
9.13
KB
-rwxrwxrwx
2021-01-24 18:08
pkg-config
46.94
KB
-rw-rw-rw-
2021-01-24 18:01
pkg-config.bat
49.2
KB
-rwxrwxrwx
2021-01-24 18:08
pl2bat.bat
11.49
KB
-rwxrwxrwx
2021-01-24 18:08
pl2bat.pl
10.4
KB
-rw-rw-rw-
2021-01-24 18:01
pl2pm.bat
5.56
KB
-rwxrwxrwx
2024-07-26 17:42
pler
540
B
-rw-rw-rw-
2021-01-24 18:01
pler.bat
1.07
KB
-rwxrwxrwx
2021-01-24 18:08
pm-uninstall
820
B
-rw-rw-rw-
2021-01-24 18:01
pm-uninstall.bat
1.28
KB
-rwxrwxrwx
2023-11-19 11:41
pod2html.bat
5.02
KB
-rwxrwxrwx
2024-07-26 17:42
pod2latex
10.39
KB
-rw-rw-rw-
2024-07-26 17:42
pod2latex.bat
10.92
KB
-rwxrwxrwx
2024-07-26 17:42
pod2man.bat
15.42
KB
-rwxrwxrwx
2023-11-19 11:41
pod2text.bat
11.29
KB
-rwxrwxrwx
2023-11-19 11:41
pod2usage
4.16
KB
-rw-rw-rw-
2021-01-24 16:27
pod2usage.bat
4.67
KB
-rwxrwxrwx
2021-01-24 18:08
pod_cover
1.37
KB
-rw-rw-rw-
2021-01-24 18:01
pod_cover.bat
1.94
KB
-rwxrwxrwx
2021-01-24 18:08
podchecker
3.7
KB
-rw-rw-rw-
2021-01-24 16:27
podchecker.bat
4.21
KB
-rwxrwxrwx
2021-01-24 18:08
podselect
2.56
KB
-rw-rw-rw-
2021-01-24 16:25
podselect.bat
3.07
KB
-rwxrwxrwx
2021-01-24 18:08
ppd2par
4.64
KB
-rw-rw-rw-
2021-01-24 18:01
ppd2par.bat
5.32
KB
-rwxrwxrwx
2021-01-24 18:08
ppm.bat
35.53
KB
-rwxrwxrwx
2021-01-24 18:08
ppm.pl
33.99
KB
-rw-rw-rw-
2021-01-24 18:01
primes.bat
21.45
KB
-rwxrwxrwx
2021-01-24 18:08
primes.pl
20.34
KB
-rw-rw-rw-
2021-01-24 18:01
prove.bat
14.07
KB
-rwxrwxrwx
2023-11-19 11:41
ptar
3.38
KB
-rw-rw-rw-
2021-01-24 18:01
ptar.bat
4.28
KB
-rwxrwxrwx
2021-01-24 18:08
ptardiff
2.48
KB
-rw-rw-rw-
2021-01-24 18:01
ptardiff.bat
3.35
KB
-rwxrwxrwx
2021-01-24 18:08
ptargrep
4.19
KB
-rw-rw-rw-
2021-01-24 18:01
ptargrep.bat
5.14
KB
-rwxrwxrwx
2021-01-24 18:08
runperl.bat
2.72
KB
-rwxrwxrwx
2021-01-24 18:08
scan-perl-prereqs-nqlite
5.28
KB
-rw-rw-rw-
2021-01-24 16:24
scan-perl-prereqs-nqlite.bat
6
KB
-rwxrwxrwx
2021-01-24 18:08
search.bat
55.83
KB
-rwxrwxrwx
2021-01-24 18:08
shasum.bat
10.48
KB
-rwxrwxrwx
2023-11-19 11:41
splain.bat
20.43
KB
-rwxrwxrwx
2024-07-26 17:42
streamzip
5.45
KB
-rw-rw-rw-
2021-01-24 18:01
streamzip.bat
6.17
KB
-rwxrwxrwx
2021-01-24 18:08
stubmaker.bat
4.01
KB
-rwxrwxrwx
2021-01-24 18:08
stubmaker.pl
3.35
KB
-rw-rw-rw-
2021-01-24 18:01
test-yaml
1017
B
-rw-rw-rw-
2021-01-24 18:01
test-yaml.bat
1.56
KB
-rwxrwxrwx
2021-01-24 18:08
tpage
8.85
KB
-rw-rw-rw-
2021-01-24 18:01
tpage.bat
9.64
KB
-rwxrwxrwx
2021-01-24 18:08
ttree
38.21
KB
-rw-rw-rw-
2021-01-24 18:01
ttree.bat
39.9
KB
-rwxrwxrwx
2021-01-24 18:08
use-devel-checklib
2.7
KB
-rw-rw-rw-
2021-01-24 16:53
use-devel-checklib.bat
3.31
KB
-rwxrwxrwx
2021-01-24 18:08
whirlpoolsum
4.93
KB
-rw-rw-rw-
2021-01-24 18:01
whirlpoolsum.bat
5.67
KB
-rwxrwxrwx
2021-01-24 18:08
wperl.exe
39
KB
-rwxrwxrwx
2021-01-24 16:06
xml_grep
13.32
KB
-rw-rw-rw-
2021-01-24 18:01
xml_grep.bat
14.3
KB
-rwxrwxrwx
2021-01-24 18:08
xml_merge
3.89
KB
-rw-rw-rw-
2021-01-24 18:01
xml_merge.bat
4.55
KB
-rwxrwxrwx
2021-01-24 18:08
xml_pp
7.82
KB
-rw-rw-rw-
2021-01-24 18:01
xml_pp.bat
8.61
KB
-rwxrwxrwx
2021-01-24 18:08
xml_spellcheck
6.34
KB
-rw-rw-rw-
2021-01-24 18:01
xml_spellcheck.bat
7.1
KB
-rwxrwxrwx
2021-01-24 18:08
xml_split
21.13
KB
-rw-rw-rw-
2021-01-24 18:01
xml_split.bat
22.27
KB
-rwxrwxrwx
2021-01-24 18:08
xsubpp.bat
5.78
KB
-rwxrwxrwx
2023-11-19 11:41
zipdetails
56.01
KB
-rw-rw-rw-
2021-01-24 18:01
zipdetails.bat
58.95
KB
-rwxrwxrwx
2021-01-24 18:08
Save
Rename
#!perl require 5; use ExtUtils::PL2Bat; use Getopt::Std; $0 =~ s|.*[/\\]||; my $usage = <<EOT; Usage: $0 [-h] or: $0 [-w] [-u] [-a argstring] [-s stripsuffix] [files] or: $0 [-w] [-u] [-n ntargs] [-o otherargs] [-s stripsuffix] [files] -n ntargs arguments to invoke perl with in generated file when run from Windows NT. Defaults to '-x -S %0 %*'. -o otherargs arguments to invoke perl with in generated file other than when run from Windows NT. Defaults to '-x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9'. -u update files that may have already been processed by (some version of) pl2bat. -w include "-w" on the /^#!.*perl/ line (unless a /^#!.*perl/ line was already present). -s stripsuffix strip this suffix from file before appending ".bat" Not case-sensitive Can be a regex if it begins with '/' Defaults to "/\.plx?/" -h show this help EOT my %OPT = (); warn($usage), exit(0) if !getopts('whun:o:a:s:',\%OPT) or $OPT{'h'}; die '-a option has been removed' if $OPT{a}; my %key_for = ( n => 'ntargs', o => 'otherargs', a => 'argstring', u => 'update', w => 'usewarnings' ); my %args; for my $old_key (keys %key_for) { if (exists $OPT{$old_key}) { $args{$key_for{$old_key}} = $OPT{$old_key}; } } if (exists $OPT{s}) { $args{strip_suffix} = $OPT{'s'} =~ m#^/([^/]*[^/\$]|)\$?/?$# ? qr/$1/ : qr/\Q$OPT{'s'}\E/; } for my $file (@ARGV) { pl2bat(%args, in => $file); } __END__ =head1 NAME pl2bat - wrap perl code into a batch file =head1 SYNOPSIS B<pl2bat> B<-h> B<pl2bat> [B<-w>] S<[B<-a> I<argstring>]> S<[B<-s> I<stripsuffix>]> [files] B<pl2bat> [B<-w>] S<[B<-n> I<ntargs>]> S<[B<-o> I<otherargs>]> S<[B<-s> I<stripsuffix>]> [files] =head1 DESCRIPTION This utility converts a perl script into a batch file that can be executed on DOS-like operating systems. This is intended to allow you to use a Perl script like regular programs and batch files where you just enter the name of the script [probably minus the extension] plus any command-line arguments and the script is found in your B<PATH> and run. =head2 ADVANTAGES There are several alternatives to this method of running a Perl script. They each have disadvantages that help you understand the motivation for using B<pl2bat>. =over =item 1 C:> perl x:/path/to/script.pl [args] =item 2 C:> perl -S script.pl [args] =item 3 C:> perl -S script [args] =item 4 C:> ftype Perl=perl.exe "%1" %* C:> assoc .pl=Perl then C:> script.pl [args] =item 5 C:> ftype Perl=perl.exe "%1" %* C:> assoc .pl=Perl C:> set PathExt=%PathExt%;.PL then C:> script [args] =back B<1> and B<2> are the most basic invocation methods that should work on any system [DOS-like or not]. They require extra typing and require that the script user know that the script is written in Perl. This is a pain when you have lots of scripts, some written in Perl and some not. It can be quite difficult to keep track of which scripts need to be run through Perl and which do not. Even worse, scripts often get rewritten from simple batch files into more powerful Perl scripts in which case these methods would require all existing users of the scripts be updated. B<3> works on modern Win32 versions of Perl. It allows the user to omit the ".pl" or ".bat" file extension, which is a minor improvement. B<4> and B<5> work on some Win32 operating systems with some command shells. One major disadvantage with both is that you can't use them in pipelines nor with file redirection. For example, none of the following will work properly if you used method B<4> or B<5>: C:> script.pl <infile C:> script.pl >outfile C:> echo y | script.pl C:> script.pl | more This is due to a Win32 bug which Perl has no control over. This bug is the major motivation for B<pl2bat> [which was originally written for DOS] being used on Win32 systems. Note also that B<5> works on a smaller range of combinations of Win32 systems and command shells while B<4> requires that the user know that the script is a Perl script [because the ".pl" extension must be entered]. This makes it hard to standardize on either of these methods. =head2 DISADVANTAGES There are several potential traps you should be aware of when you use B<pl2bat>. The generated batch file is initially processed as a batch file each time it is run. This means that, to use it from within another batch file you should precede it with C<call> or else the calling batch file will not run any commands after the script: call script [args] Except under Windows NT, if you specify more than 9 arguments to the generated batch file then the 10th and subsequent arguments are silently ignored. Except when using F<CMD.EXE> under Windows NT, if F<perl.exe> is not in your B<PATH>, then trying to run the script will give you a generic "Command not found"-type of error message that will probably make you think that the script itself is not in your B<PATH>. When using F<CMD.EXE> under Windows NT, the generic error message is followed by "You do not have Perl in your PATH", to make this clearer. On most DOS-like operating systems, the only way to exit a batch file is to "fall off the end" of the file. B<pl2bat> implements this by doing C<goto :endofperl> and adding C<__END__> and C<:endofperl> as the last two lines of the generated batch file. This means: =over =item No line of your script should start with a colon. In particular, for this version of B<pl2bat>, C<:endofperl>, C<:WinNT>, and C<:script_failed_so_exit_with_non_zero_val> should not be used. =item Care must be taken when using C<__END__> and the C<DATA> file handle. One approach is: . #!perl . while( <DATA> ) { . last if /^__END__$/; . [...] . } . __END__ . lines of data . to be processed . __END__ . :endofperl The dots in the first column are only there to prevent F<cmd.exe> to interpret the C<:endofperl> line in this documentation. Otherwise F<pl2bat.bat> itself wouldn't work. See the previous item. :-) =item The batch file always "succeeds" The following commands illustrate the problem: C:> echo exit(99); >fail.pl C:> pl2bat fail.pl C:> perl -e "print system('perl fail.pl')" 99 C:> perl -e "print system('fail.bat')" 0 So F<fail.bat> always reports that it completed successfully. Actually, under Windows NT, we have: C:> perl -e "print system('fail.bat')" 1 So, for Windows NT, F<fail.bat> fails when the Perl script fails, but the return code is always C<1>, not the return code from the Perl script. =back =head2 FUNCTION By default, the ".pl" suffix will be stripped before adding a ".bat" suffix to the supplied file names. This can be controlled with the C<-s> option. The default behavior is to have the batch file compare the C<OS> environment variable against C<"Windows_NT">. If they match, it uses the C<%*> construct to refer to all the command line arguments that were given to it, so you'll need to make sure that works on your variant of the command shell. It is known to work in the F<CMD.EXE> shell under Windows NT. 4DOS/NT users will want to put a C<ParameterChar = *> line in their initialization file, or execute C<setdos /p*> in the shell startup file. On Windows95 and other platforms a nine-argument limit is imposed on command-line arguments given to the generated batch file, since they may not support C<%*> in batch files. These can be overridden using the C<-n> and C<-o> options or the deprecated C<-a> option. =head1 OPTIONS =over 8 =item B<-n> I<ntargs> Arguments to invoke perl with in generated batch file when run from Windows NT (or Windows 98, probably). Defaults to S<'-x -S %0 %*'>. =item B<-o> I<otherargs> Arguments to invoke perl with in generated batch file except when run from Windows NT (ie. when run from DOS, Windows 3.1, or Windows 95). Defaults to S<'-x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9'>. =item B<-a> I<argstring> Arguments to invoke perl with in generated batch file. Specifying B<-a> prevents the batch file from checking the C<OS> environment variable to determine which operating system it is being run from. =item B<-s> I<stripsuffix> Strip a suffix string from file name before appending a ".bat" suffix. The suffix is not case-sensitive. It can be a regex if it begins with '/' (the trailing '/' is optional and a trailing C<$> is always assumed). Defaults to C</.plx?/>. =item B<-w> If no line matching C</^#!.*perl/> is found in the script, then such a line is inserted just after the new preamble. The exact line depends on C<$Config{startperl}> [see L<Config>]. With the B<-w> option, C<" -w"> is added after the value of C<$Config{startperl}>. If a line matching C</^#!.*perl/> already exists in the script, then it is not changed and the B<-w> option is ignored. =item B<-u> If the script appears to have already been processed by B<pl2bat>, then the script is skipped and not processed unless B<-u> was specified. If B<-u> is specified, the existing preamble is replaced. =item B<-h> Show command line usage. =back =head1 EXAMPLES C:\> pl2bat foo.pl bar.PM [..creates foo.bat, bar.PM.bat..] C:\> pl2bat -s "/\.pl|\.pm/" foo.pl bar.PM [..creates foo.bat, bar.bat..] C:\> pl2bat < somefile > another.bat C:\> pl2bat > another.bat print scalar reverse "rekcah lrep rehtona tsuj\n"; ^Z [..another.bat is now a certified japh application..] C:\> ren *.bat *.pl C:\> pl2bat -u *.pl [..updates the wrapping of some previously wrapped scripts..] C:\> pl2bat -u -s .bat *.bat [..same as previous example except more dangerous..] =head1 BUGS C<$0> will contain the full name, including the ".bat" suffix when the generated batch file runs. If you don't like this, see runperl.bat for an alternative way to invoke perl scripts. Default behavior is to invoke Perl with the B<-S> flag, so Perl will search the B<PATH> to find the script. This may have undesirable effects. On really old versions of Win32 Perl, you can't run the script via C:> script.bat [args] and must use C:> script [args] A loop should be used to build up the argument list when not on Windows NT so more than 9 arguments can be processed. See also L</DISADVANTAGES>. =head1 SEE ALSO perl, perlwin32, runperl.bat =cut