From ken at flyingtoasters.net Tue Mar 4 11:15:04 2003 From: ken at flyingtoasters.net (Ken D'Ambrosio) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Modifying mtime with Perl? In-Reply-To: <9xd6lc56ad.fsf@koan.cetaceannetworks.com> References: <20030227203726.8C90EF7C3@tater> <7csmu9s8zw.fsf@koan.cetaceannetworks.com> <20030228213507.48D0DF7C3@tater> <9xd6lc56ad.fsf@koan.cetaceannetworks.com> Message-ID: <13632.64.65.199.187.1046798104.squirrel@greenroom.flyingtoasters.net> I know how to -get- the mtime with stat(); that's easy enough. How do I -set- the mtime? I'm changing IMAP servers, and need to do a s/\r//; on all the e-mail files, but the server keeps track of when the mail "arrived" based on the mtime (or maybe ctime; experimentation will tell), so I need to save it, chop off my carriage returns, then re-set the correct time. Can't seem to figure it out from the perlfunc manpage, nor cpan. Thanks, -Ken From jim.mcginness at att.net Tue Mar 4 17:37:32 2003 From: jim.mcginness at att.net (jim.mcginness@att.net) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] Modifying mtime with Perl? Message-ID: <200303042337.h24NbdO25404@mail.pm.org> Collect the atime and mtime before the carriage return modification, then set them back using 'utime'. Let's hope it's not using the ctime. From pll at lanminds.com Fri Mar 21 15:30:55 2003 From: pll at lanminds.com (pll@lanminds.com) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] looking for a perl function Message-ID: <20030321213055.8BF4DF621@tater> Anyone know where inet_aton is to be found? I could have sworn this was in the core. Thanks, -- Seeya, Paul -- Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE It may look like I'm just sitting here doing nothing, but I'm really actively waiting for all my problems to go away. If you're not having fun, you're not doing it right! From jim.mcginness at att.net Fri Mar 21 16:16:23 2003 From: jim.mcginness at att.net (jim.mcginness@att.net) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] looking for a perl function: inet_aton Message-ID: <200303212216.h2LMGTr20845@mail.pm.org> pll@lanminds.com asked: > Anyone know where inet_aton is to be found? You should get it with use Socket; From kclark at CetaceanNetworks.com Fri Mar 21 16:50:51 2003 From: kclark at CetaceanNetworks.com (Kevin D. Clark) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] looking for a perl function In-Reply-To: <20030321213055.8BF4DF621@tater> References: <20030321213055.8BF4DF621@tater> Message-ID: pll@lanminds.com writes: > Anyone know where inet_aton is to be found? > > I could have sworn this was in the core. Try adding: use Socket; to your code. Hope this helps, --kevin -- Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA) cetaceannetworks.com!kclark (GnuPG ID: B280F24E) alumni.unh.edu!kdc From pll at lanminds.com Mon Mar 24 09:07:11 2003 From: pll at lanminds.com (Paul Lussier) Date: Mon Aug 2 21:33:07 2004 Subject: [Nh-pm] looking for a perl function In-Reply-To: Message from kclark@cetaceannetworks.com (Kevin D. Clark) of "21 Mar 2003 17:50:51 EST." References: <20030321213055.8BF4DF621@tater> Message-ID: <20030324150712.377F3F627@tater> >>>>> On 21 Mar 2003, "Kevin" == Kevin D. Clark wrote: Kevin> Try adding: Kevin> use Socket; >>>>> On Fri, 21 Mar 2003, "jimmcginness" == jim.mcginness@att.net wrote: jimmcginness> You should get it with jimmcginness> use Socket; Thanks much! That's what I couldn't remember :) -- Seeya, Paul -- Key fingerprint = 1660 FECC 5D21 D286 F853 E808 BB07 9239 53F1 28EE It may look like I'm just sitting here doing nothing, but I'm really actively waiting for all my problems to go away. If you're not having fun, you're not doing it right!