Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: globing files with spaces problem.

by kschwab (Vicar)
on Aug 10, 2002 at 15:26 UTC ( [id://189183]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /dir1/file1
    /dir two/file2
    
  2. or download this
    foreach my $dir (glob("*")) {
      foreach  my $file (glob("$dir/*")) {
          print "[$file]\n";
      }
    }
    
  3. or download this
    
    use File::Glob qw(bsd_glob);
    ...
          print "file [$file]\n";
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found