dru145 has asked for the wisdom of the Perl Monks concerning the following question:
Can somebody please tell me what I am doing wrong?188 open (IN,"$header") || die "can't open file $header: $!"; 189 open (OUT,">$output") || die "can't open file $output: $!"; 190 while (<IN>) { 191 print OUT $_; 192 } # close while 193 close(IN) || warn "can't close $header: $!"; 194 close(OUT) || warn "can't close $output: $!"; 195 196 my $string = "$month$year1"; 197 my @days = ($day1 .. $day2); 198 @days = map {$_ .= "$string"} @days;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why do I keep getting this error message?
by dvergin (Monsignor) on Dec 05, 2001 at 22:33 UTC | |
|
Re: Why do I keep getting this error message?
by George_Sherston (Vicar) on Dec 05, 2001 at 23:04 UTC | |
|
Re: Why do I keep getting this error message?
by vek (Prior) on Dec 06, 2001 at 03:20 UTC |