On Friday 04 May 2001 8:13 am, Julian Church wrote:
> At 15:58 03/05/01 -0500, Me wrote:
> >Point being, there's a grep (regex based search)
> >of the perl doc a few seconds away...
>
> Thanks for the tip. It's easy to miss information like this when
> you're just beginning a new thing like this
At 15:58 03/05/01 -0500, Me wrote:
>Point being, there's a grep (regex based search)
>of the perl doc a few seconds away...
Thanks for the tip. It's easy to miss information like this when you're
just beginning a new thing like this. I've done a bit more digging and the
output of
perldoc per
> perldoc -f stat gave me all the info I needed.
Significantly, this would get you started too:
perldoc -q timestamp
Point being, there's a grep (regex based search)
of the perl doc a few seconds away...
Thanks Paul and Gary
perldoc -f stat gave me all the info I needed.
cheers
Julian
--
[EMAIL PROTECTED]
www.ljchurch.co.uk
--- Julian Church <[EMAIL PROTECTED]> wrote:
> . . .
> Can anyone tell me how to use Perl to obtain the modification /
> creation date of a file on an NT 4 machine?
It should be the same as anywhere else. =o)
Try -M $file (which is age in days as of when the script started), or
maybe @x=stat($
Here's my script for setting the mdate/cdate for one file to match
another.
Specifically, look at perldoc -f stat.
!/usr/bin/perl -w
unless ( $ARGV[1]) {
print STDERR "utime: usage - utime file1 file2\n";
print STDERR "utime: modifies the accessed and modified dates of
file2 to match\n"
I'm a very fresh novice at Perl. I'm using Apache on my office Windows NT
server to serve up a small intranet site. I've written one small but
practical server side include in perl and am now starting on my second.
Can anyone tell me how to use Perl to obtain the modification / creation
date