This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document Carp's global variables + provide tests
[perl5.git] / ext / Devel / PPPort / ppport_h.PL
CommitLineData
a06d4b7f
NIS
1package Devel::PPPort;
2sub bootstrap {};
90e434f8
JH
3require "PPPort.pm";
4WriteFile("ppport.tmp");
5{
6 local $/;
7 my $old = '';
8 my $new = '';
9 $old = <FH> if open(FH, "ppport.h"); close FH;
10 $new = <FH> if open(FH, "ppport.tmp"); close FH;
11 if ($old ne $new) {
12 unlink("ppport.h");
13 rename("ppport.tmp", "ppport.h");
14 }
15 unlink("ppport.tmp");
16}
17