blob: 6c8a5c9521e695e9f23e032609369b6511eb460c (
plain)
- #!c:\vanilla-perl\perl\bin\perl
- # Use this script to convert the beginnings of files to the path to ActivePerl
- # if you are installing with Vanilla Perl.
- 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;
- print FH "#!c:\\vanilla-perl\\perl\\bin\\perl\n";
- print FH @file;
- close(FH);
- }
|