Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
for some reason if I was to upload a dile to this direcotry, foreach file it would print the day that I upload it, not the original day foreach.foreach my $file (@userfiles) { my $size = format_size(-s "$user{site_id}/$file"); $mtime = (stat("$user{site_id}"))[9]; ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = (localtime +($mtime)); $year += 1900; print qq~ <tr> <td bgcolor="#FFFFFF" align="center" width="25"> <input type="radio" name="select" value="file"> </td> <td bgcolor="#FFFFFF" align="center" width="175"> <font face="verdana" color="black" size="1"><a href="http:// +www.webewebin.com/home/$user{'site_id'}/$file">$file</a> </td> <td bgcolor="#FFFFFF" align="center"> <font face="verdana" color="black" size="1"> $size</font> </td> <td bgcolor="#FFFFFF" align="center"> <font face="verdana" color="black" size="1">$mon-$mday-$year +</font> </td> </tr> ~; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: localtime and stuff
by Abigail-II (Bishop) on Jun 14, 2002 at 15:39 UTC | |
by Anonymous Monk on Jun 14, 2002 at 15:48 UTC | |
Re: localtime and stuff
by marvell (Pilgrim) on Jun 14, 2002 at 15:34 UTC | |
by robobunny (Friar) on Jun 14, 2002 at 15:42 UTC | |
by Anonymous Monk on Jun 14, 2002 at 15:39 UTC | |
by marvell (Pilgrim) on Jun 14, 2002 at 15:46 UTC |
Back to
Seekers of Perl Wisdom