Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About Stat built in function in Perl

Status
Not open for further replies.

022267

IS-IT--Management
Nov 6, 2002
5
US
Hi, folks,

It has no problem to use "stat" function to retrieve the modified date of a file, which is getten from a remote server by mapping that server to the local machine. However, after I use the "NET::FTP->new" instead of Mapping, it did not work. Here is an example:
my $m_date = ((stat($remote_file))[9]);
print "$m_date\n";

during the run, there was no response to this "print" statement.


Can anybody help me to solve this problem?
Thanks.
 
hi there,

stat() doesn't work on remote files..... sorry Mike

"Experience is the comb that Nature gives us, after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top