root@house:~# cat perl-file-test.pl
#!/usr/bin/perl
use Data::Dumper;
print Dumper(stat($ARGV[0]));
root@house:~# ./perl-file-test.pl /public/incoming/iplayer/This_Week_-_14_01_2010_b00q05jd_default.mov
$VAR1 = 2049;
$VAR2 = 80084996;
$VAR3 = 33279;
$VAR4 = 1;
$VAR5 = 0;
$VAR6 = 0;
$VAR7 = 0;
$VAR8 = '0';
$VAR9 = 1264352210;
$VAR10 = 1263994744;
$VAR11 = 1264500019;
$VAR12 = 4096;
$VAR13 = 317496;
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($filename);my $size = (`du -sb $filename`)[0]; $size =~ s/\s+.*$//;linuxcentre wrote:... I suggest you post this bug to the maintainers of the perl distro for your Linux distro.
Users browsing this forum: No registered users and 1 guest