summaryrefslogtreecommitdiff
path: root/dists/win32/shebang-strawberry.pl
blob: 9c30b5934b73e63e8466a45923023d4572b02c9f (plain)
  1. #!c:\strawberry-perl\perl\bin\perl
  2. # Use this script to convert the beginnings of files to the path to Strawberry Perl
  3. # if you are installing with Strawberry Perl.
  4. opendir DIR, ".";
  5. @perlfiles = grep /\.pl/, readdir DIR;
  6. closedir DIR;
  7. foreach $file (@perlfiles) {
  8. open FH, '+<', "$file";
  9. @file = <FH>;
  10. seek( FH, 0, 0 );
  11. truncate( FH, 0 );
  12. $line = shift @file;
  13. print FH "#!c:\\strawberry-perl\\perl\\bin\\perl\n";
  14. print FH @file;
  15. close(FH);
  16. }