On Wed, 13 Jun 2001, [EMAIL PROTECTED] wrote:
> Thanks for pointing me in a better direction. I used this ...
>
>
> > $now = time;
> > utime $now, $now, @files; # sets access and modification time
>
> ... and expanded it to this ...
>
> $now = time;
>
> print $now;
>
> @meters = ("test0612
Thanks for pointing me in a better direction. I used this ...
> $now = time;
> utime $now, $now, @files; # sets access and modification time
... and expanded it to this ...
$now = time;
print $now;
@meters = ("test0612d.shtml");
foreach $file (@meters) {
utime $now, $now, $fil
on a *nix system, any file created automatically get's a timestamp... as
far as 'touch' goes, this might well be over kill in this case.
concider the following:
open O, ">foo.txt";
this creates 'foo.txt' and opens it for writing.
now, if you dont write anything to it, that's your choice... and y
On Tue, 12 Jun 2001, [EMAIL PROTECTED]
> Here is the latest statements that I tried.
>
> system 'touch', 'test0612a.shtml';
system() returns 0 on success, other value on failure. What did
you expect? If it fails to touch the file, is the path correct?
Don't you need the full path to the file?
I'm trying to write a script that opens a file, then matches some
characters, and then writes the output to an HTML file on the fly.
Everything works except I also want to timestamp a file with touch
in the same perl script and that doesn't work. Touch is active as I
can 'touch' the file on th