Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl: the Markov chain saw
 
PerlMonks  

Re: File Size in Directory

by physi (Friar)
on Feb 14, 2006 at 14:17 UTC ( [id://530216]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 14:33 UTC
    It will work like that!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://530216]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.