Code Comments
Programming Forum and web based access to our favorite programming groups.On 8/24/07, Marian Bednar <bednar@nbs.sk> wrote:
snip
> print "$_->{filename} \n" if -f $_->{filename};
snip
> Script above write out nothing, but if last line is this
>
> print "$_->{filename} \n";
>
> It writes out names of files, directories, but I need only names of files.
> How can I get it easy?
snip
either of these should work.
print "$_->{filename}\n" unless $_->{longname} =~ /^d/;
print "$_->{filename}\n" unless $_->{a}->perm() & 16384;
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.