Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

glob behavior

by vagabonding electron (Chaplain)
on Mar 20, 2012 at 08:02 UTC ( #960545=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    U:/TEMP/TEMP/A/Test01.txt
    U:/TEMP/TEMP/C/Test03.txt
    U:/TEMP/TEMP/B/Test02.txt
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    {
        print "$t : $address{$t} : ", glob ("$address{$t}/Test*"), "\n";
    }
    
  3. or download this
    A : U:/TEMP/TEMP/A : U:/TEMP/TEMP/A/Test01.txt
    C : U:/TEMP/TEMP/C : U:/TEMP/TEMP/C/Test03.txt
    B : U:/TEMP/TEMP/B : U:/TEMP/TEMP/B/Test02.txt
    
  4. or download this
    #!/usr/bin/perl
    use strict;
    ...
        my $file = glob ("$address{$t}/Test*");
        print "$t : $address{$t} : $file, \n";
    }
    
  5. or download this
    A : U:/TEMP/TEMP/A : U:/TEMP/TEMP/A/Test01.txt,
    Use of uninitialized value $file in concatenation (.) or string at ...
    + line 15.
    C : U:/TEMP/TEMP/C : ,
    B : U:/TEMP/TEMP/B : U:/TEMP/TEMP/B/Test02.txt,
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://960545]
Approved by davido
Front-paged by MidLifeXis
help
Chatterbox?
[LanX]: wait... I /ignored NodeRapist
LanX ignore NodeReaper
[LanX]: hmm ...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2018-02-23 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (303 votes). Check out past polls.

    Notices?