Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Stat function returning an empty list

by Paladin (Vicar)
on Mar 06, 2015 at 16:08 UTC ( #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 16:16 UTC
    You, Mr.Paladin, are a saviour :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2019-10-18 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?