"Flemming Hansen" <fatih@ofir.dk> writes:
> Øhm, jeg vil ikke rigtig hvordan jeg kan bruge File::Find da jeg er en
> nybegynder og vil ikke dykke så dybt ind i perl endnu
Det er sådan at
Vel, altså et eller andet ala det følgende:
#!/usr/bin/perl
use File::Find;
sub wanted {
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
$atime,$mtime,$ctime,$blksize,$blocks) = stat _;
print "$File::Find::name\t$size\t", scalar localtime $ctime, "\n" if -f _;
}
find(\&wanted, ".");
__END__
--
Peter Makholm | Sit back and watch the messages. This is actually
peter@makholm.net | more important than one might think as there is a
http://hacking.dk | bug in GNU Mach whereby hitting a key during the
| boot process causes the kernel to panic
| -- GNU Hurd Installation Guide