in reply to Re: selcting a specific file
in thread selcting a specific file
@files = grep { /\.log$/ } readdir ($DIR); foreach my $x (@files){ open READFILE, "......"; open WRITEFILE, ">......"; while(<READFILE>){ chomp; my @parts = split(/\s/, $_); print WRITEFILE $parts[1], " ", $parts[0], "\n"; } close WRITEFILE; close READFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: selcting a specific file
by mwah (Hermit) on Oct 22, 2007 at 21:47 UTC | |
by Anonymous Monk on Oct 23, 2007 at 00:18 UTC | |
|