C:\>perldoc -f utime
utime LIST
Changes the access and modification times on each file of a list
of files. The first two elements of the list must be the
NUMERICAL access and modification times, in that order. Returns
the number of files successfully changed. The inode change time
of each file is set to the current time. This code has the same
effect as the "touch" command if the files already exist:
#!/usr/bin/perl
$now = time;
utime $now, $now, @ARGV;
-Pete
> -----Original Message-----
> From: Francis Paulin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 12, 2004 10:33 AM
> To: [EMAIL PROTECTED]; Perl-Unix-Users
> ([EMAIL PROTECTED])
> Subject: Portable solution for modifying date
>
>
> Hi,
>
> I want to know if there is any way to modify the "last modify time in
> seconds since the epoch" attribute of a file
> with a portable solution on Windows, Unix/Linux and Mac
> operating systems.
>
> Thanks
> Francis Paulin
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>