in reply to Re^2: Open a folder
in thread Open a folder
Add the sub to your code thusly:
| in your while loop invoke: process_file($tmp_dir,$file); | and then after your loop sub process_file { my($path,$node)=@_; my $fname = $path . '\' . $node; open FIN,"<$fname" or die "$fname:$!"; while (my $line=<FIN>){ chomp $line; | do something here. } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Open a folder
by Dr Manhattan (Beadle) on Jan 09, 2013 at 06:15 UTC | |
by blue_cowdawg (Monsignor) on Jan 09, 2013 at 14:04 UTC |