in reply to File Size in Directory

You have to save the whole filename, including the path in your grep construct.
push (@dircontent, map { $_="$path/$_"; $_;} grep { /\.txt$/ } readdir +($dirh));
Maybe the '/' must be an '\' for windows, you have to try it

Cheers physi

-----------------------------------
--the good, the bad and the physi--
-----------------------------------

Replies are listed 'Best First'.
Re^2: File Size in Directory
by Anonymous Monk on Feb 14, 2006 at 19:33 UTC
    It will work like that!