batcater98 has asked for the wisdom of the Perl Monks concerning the following question:
Thanks, Ad.#!/usr/local/bin/perl opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!"; @files = readdir(DIR) closedir DIR; foreach $file (@files) { ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($file); # Will use data to create SQL statements to input data into Database }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with ReadDir and Stat?
by moritz (Cardinal) on Mar 13, 2008 at 14:49 UTC | |
|
Re: Help with ReadDir and Stat?
by Akoya (Scribe) on Mar 13, 2008 at 15:59 UTC | |
by batcater98 (Acolyte) on Mar 13, 2008 at 17:23 UTC | |
by Akoya (Scribe) on Mar 13, 2008 at 17:36 UTC | |
by batcater98 (Acolyte) on Mar 13, 2008 at 18:50 UTC | |
by Akoya (Scribe) on Mar 13, 2008 at 18:59 UTC |