🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #1375

Re: Conocer fecha de modificacion de un fichero en perl

#1375
From: F
Date: Sun, 22 Jan 2006 23:06
27 lines
2070 bytes
Muchas gracais, mushicismo mas sencillo que lo que tenia en mente

"AnimAlf" <AnimAlf@engendro.sytes.net> escribi� en el mensaje 
news:1137913751.665.1.camel@general.engendro.sytes.net...
El dg 22 de 01 del 2006 a les 03:29 +0000, en/na F va escriure:
> Necesito saber la fecha de modificacion de un fichero desde perl,
> normalmente usaria  `date -`r fichero` pero necesito una solucion 
> compatible
> con windows y linux

> alguna idea?
> gracias

Con stat:
http://www.rocketaware.com/perl/perlfunc/stat.htm

-- 
AnimAlf AnimAlf@engendro.sytes.net
http://www.fut.es/~acl/AnimAlf
Personal Experimental WebServer: http://www.engendro.sytes.net
LiNUX ReGiSteRED UseR #91326
PublicPGPkeyID 0xB3B41215
Is the truth out there?

Coalici�n europea contra el correo comercial no solicitado:
http://www.euro.cauce.org/es
Technical Details
Message-ID: <meUAf.109453$kp.1020489@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mail
References: <T_CAf.99628$kp.949329@telenews.teleline.es> <1137913751.665.1.camel@general.engendro.sytes.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,9c28a97631ffceac
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!nsnmpen1-lo.nuria.telefonica-data.net!telenews.teleline.es!not-for-mail
X-Trace-PostClient-IP: 201.130.205.116
From: "F" <esnewsfQuItAeStO@EsToCaMbIeNyahoo.es>
Newsgroups: es.comp.os.linux.programacion
References: <T_CAf.99628$kp.949329@telenews.teleline.es> <1137913751.665.1.camel@general.engendro.sytes.net>
Subject: Re: Conocer fecha de modificacion  de un fichero en perl
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
Message-ID: <meUAf.109453$kp.1020489@telenews.teleline.es>
Date: Sun, 22 Jan 2006 23:06:58 GMT
NNTP-Posting-Host: 10.20.31.4
X-Complaints-To: usenet@teleline.es
X-Trace: telenews.teleline.es 1137971218 10.20.31.4 (Mon, 23 Jan 2006 00:06:58 MET)
NNTP-Posting-Date: Mon, 23 Jan 2006 00:06:58 MET
Organization: Terra Networks