I am hopeful that someone might be able to give me a pointer. I am listing file atttibutes using the "ls -l" command. I need to alter the mode time ($mtime) into as more usable format. Can someone recomend an approach to this ?
The script I'm using is below.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<h1> Listing </h1>";
use File::Listing;
for (parse_dir(`ls -l`)) {
($name, $type, $size, $mtime, $mode) = @$_;
@log = qw($name $type $size $mtime $mode);
print "<LI><a href=\"$name\">$name $mtime $type</a>\n\n" unless
($name =~ /^\.+$|index|htaccess|test/);
}
-Danny
dan@snoboarder.net
The script I'm using is below.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<h1> Listing </h1>";
use File::Listing;
for (parse_dir(`ls -l`)) {
($name, $type, $size, $mtime, $mode) = @$_;
@log = qw($name $type $size $mtime $mode);
print "<LI><a href=\"$name\">$name $mtime $type</a>\n\n" unless
($name =~ /^\.+$|index|htaccess|test/);
}
-Danny
dan@snoboarder.net