Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Loop through all directory and files and lines

by poj (Abbot)
on Oct 18, 2018 at 15:36 UTC ( #1224245=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $first (@first_directory){
      my @store_array = qw (1 2 3 4 5 6); # here
      while(my ($i,$j) = splice(@store_array,0,2)){
        my $second_directory = "$first/$i/$j";
      ..
    
  2. or download this
    #!/usr/bin/perl
    use strict; use warnings;
    ...
      }    
    }
    close $fh_log;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-12-01 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?