Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 having an uproarious good time at the Monastery: (9)
As of 2014-09-16 23:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (53 votes), past polls