Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: grep and find file weirdness

by blazar (Canon)
on Jun 20, 2007 at 19:40 UTC ( [id://622373]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @files = ();
    
  2. or download this
    find(sub { $File::Find::name =~ m/${directory}(.*)$/; push @files, $1}
    +,  $directory);
    @files = grep { is_dos_format("$directory/$_") } @files;
    
  3. or download this
    foreach my $file (@files) {
        print "FAILED FILE - $file\n";
    }
    
  4. or download this
            if ($_ =~ m/\r\n/) {
    
  5. or download this
    #!/usr/bin/perl
    
    ...
           } }, $directory;
    
    __END__
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-24 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found