in reply to moving files
If you are using NT or an OS that distinguishes binary mode from test files add binmode OUTFILE; after the open statement above.my $target = "/tmp/whatever"; open (OUTFILE, ">$target") or die "Could'nt open $target:$! \n"; print OUTFILE $file; close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Printing into files clobbers the file time
by Corion (Patriarch) on May 25, 2000 at 12:14 UTC | |
|
RE: Re: moving files
by perlcgi (Hermit) on May 24, 2000 at 21:45 UTC |