Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Dots appearing when opening a directory

by LanX (Saint)
on Mar 06, 2015 at 16:54 UTC ( [id://1119063]=note: print w/replies, xml ) Need Help??


in reply to Dots appearing when opening a directory

maybe
next if $text =~ /^\.+$/;

(untested)

NB: this will also exclude files consisting of dots only.

otherwise

next if $text =~ /^\.\.?$/;

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found