Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Q regarding glob

by TomDLux (Vicar)
on May 16, 2013 at 19:05 UTC ( #1033888=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use feature 'say';
    use Cwd;
    ...
    for my $element( glob '*/dir3/filename' ) {
       say $element; 
    }
    
  2. or download this
    my $suffix = '/dir3/filename';
    for my $element( glob '*' ) {
       say $element . $suffix; 
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2021-06-23 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (122 votes). Check out past polls.

    Notices?