@@ -16,26 +16,26 @@ use Cwd;
16
16
# This forces PL files to create target in same directory as PL file.
17
17
# This is so that make depend always knows where to find PL derivatives.
18
18
my $origdir = cwd;
19
- chdir (dirname($0 ));
20
- my $file = basename($0 , ' .PL' );
19
+ chdir ( dirname($0 ) );
20
+ my $file = basename( $0 , ' .PL' );
21
21
$file .= ' .com' if $^O eq ' VMS' ;
22
22
23
- open OUT, ' >' , $file or die " Can't create $file : $! " ;
23
+ open my $ OUT , ' >' , $file or die " Can't create $file : $! " ;
24
24
25
25
print " Extracting $file (with variable substitutions)\n " ;
26
26
27
27
# In this section, perl variables will be expanded during extraction.
28
28
# You can use $Config{...} to use Configure variables.
29
29
30
- print OUT <<"!GROK!THIS!" ;
30
+ print { $ OUT} <<"!GROK!THIS!" ;
31
31
$Config {'startperl'}
32
32
eval 'exec perl -S \$ 0 "\$ @"'
33
33
if 0;
34
34
!GROK!THIS!
35
35
36
36
# In the following, perl variables are not expanded during extraction.
37
37
38
- print OUT <<'!NO!SUBS!' ;
38
+ print { $ OUT} <<'!NO!SUBS!' ;
39
39
40
40
#############################################################################
41
41
# pod2usage -- command to print usage messages from embedded pod docs
@@ -197,7 +197,7 @@ pod2usage(\%usage);
197
197
198
198
!NO!SUBS!
199
199
200
- close OUT or die " Can't close $file : $! " ;
201
- chmod 0755, $file or die " Can't reset permissions for $file : $! \n " ;
200
+ close ( $ OUT) or die " Can't close $file : $! " ;
201
+ chmod ( 0755, $file ) or die " Can't reset permissions for $file : $! \n " ;
202
202
exec (" $Config {'eunicefix'} $file " ) if $Config {' eunicefix' } ne ' :' ;
203
- chdir $origdir ;
203
+ chdir ( $origdir ) ;
0 commit comments