Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

glob behavior

by vagabonding electron (Hermit)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-07-14 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (257 votes), past polls