Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Problem in displaying files

by moritz (Cardinal)
on Dec 08, 2012 at 16:23 UTC ( #1007904=note: print w/ replies, xml ) Need Help??


in reply to Problem in displaying files

. is the current directory and .. is the parent directory.

It seems like you are treating all your directory entries as files, which doesn't work. So explicitly exclude directories:

foreach my $FILE (@FILES){ next if -d $FILE; print $FILE, "\n"; }


Comment on Re: Problem in displaying files
Select or Download Code
Replies are listed 'Best First'.
Re^2: Problem in displaying files
by Anonymous Monk on Dec 08, 2012 at 16:45 UTC

    Thank you, that solved my problem.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-08-01 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls