MoshiachNow
IS-IT--Management
Trying to get the file size using readdir with e following code (taken from some perl manual),but without any luck:
opendir DH,"$tempdir" or die "Could not open $tempdir !\n";
while ($_ = readdir (DH)) {
next unless (/$targetfile/);
$currentSize = print -s _;
}
will appreciate advise.
(I know that line "$currentSize = print -s _" is wrong ...)
Long live king Moshiach !
opendir DH,"$tempdir" or die "Could not open $tempdir !\n";
while ($_ = readdir (DH)) {
next unless (/$targetfile/);
$currentSize = print -s _;
}
will appreciate advise.
(I know that line "$currentSize = print -s _" is wrong ...)
Long live king Moshiach !