blob: b9b27641acb7c4c72f857b1e6c70d3ef8374a1cb (
plain)
- #!c:\perl\bin\perl
- # Use this script to convert the beginnings of files to the path to ActivePerl
- # if you are installing with ActivePerl.
- opendir DIR, ".";
- @perlfiles = grep /\.pl/, readdir DIR;
- closedir DIR;
- foreach $file (@perlfiles) {
- open FH, '+<', "$file";
- @file = <FH>;
- seek( FH, 0, 0 );
- truncate( FH, 0 );
- $line = shift @file;
- if ($line =~ /^#!/) {
- print FH "#!c:\\perl\\bin\\perl\n";
- } else {
- print FH $line;
- }
- print FH @file;
- close(FH);
- }
|