Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Tricky regexp

by 7stud (Deacon)
on Jun 27, 2011 at 10:54 UTC ( [id://911543]=note: print w/replies, xml ) Need Help??


in reply to Tricky regexp

The glob() function will tack the file name onto the path specified for the search directory, and it will skip hidden files that start with a dot:

use strict; use warnings; use 5.010; my @files = glob "/users/me/*"; for (@files) { say; } --output:-- /users/me/066.JPG /users/me/069.JPG /users/me/072.JPG /users/me/077.JPG /users/me/079-1.JPG /users/me/079.JPG /users/me/081-1.JPG /users/me/081.JPG /users/me/1.txt /users/me/1perl.pl ... ...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found