[Dub-pm] Time::Piece && while loops

Nick Hilliard nick at netability.ie
Wed May 5 17:02:05 CDT 2004

> What I want this script to do is keep writing out the connection info into
> this same file *until* the day changes - ala "automated log rotation" ;>
> SOooo... when talking to Doc on IRC last night we discussed using a while
> loop to do this.  My catch is trying to work out the "best way"
> (programatically, as well as "resource-wise") to do this - ie. check the
> day, and while $date != $date + 1, write into the log file - otherwise,
> update $date, $logfile, and write into the new file

One rather grody way of doing this is to use cacheout (in FileCache).  It's not 
efficient, but it saves lots in terms of coding.


More information about the Dublin-pm mailing list