wrote:
> John, thanks for this. It's only out putting empty files
That's odd - John's script should not have produced any type of file
for you - not because there's anything wrong with his script, but
because you're on a Windows machine, and you want to create files named
as per the timestamp, which include double-points (aka "colon", ie ":")
which is an illegal character on Windows filesystems. It should have
failed on the attempt to create the file for writing.
John's script works perfectly for me on UNIX, and perfectly on Windows
if I create a slightly modified version of the filename, such as:
(my $file = $_) =~ s/\:/_/g;
open OUT, '>',$file or die "Cannot open $_: $!";
--
http://DavidFilmer.com