Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Stat function returning an empty list

by Paladin (Vicar)
on Mar 06, 2015 at 21:08 UTC ( [id://1119109]=note: print w/replies, xml ) Need Help??


in reply to Stat function returning an empty list

readdir doesn't return the path to the file, just the file name. You have a file called "Language/French.txt" but are statting just "French.txt". Change your stat call to:
stat("dir/$_");

Replies are listed 'Best First'.
Re^2: Stat function returning an empty list
by The_Last_Monk (Novice) on Mar 06, 2015 at 21:16 UTC
    You, Mr.Paladin, are a saviour :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1119109]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found