Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $file = '.'; opendir(DIR,$file); @files=readdir(DIR); close(DIR); for(@files) { if($_ =~ m{/s+}) { s/$_/_/g } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Renaming files
by sch (Pilgrim) on Oct 25, 2002 at 16:26 UTC | |
by thor (Priest) on Oct 25, 2002 at 18:59 UTC | |
by Anonymous Monk on Oct 25, 2002 at 17:12 UTC | |
|
Re: Renaming files
by fruiture (Curate) on Oct 25, 2002 at 16:21 UTC | |
by Anonymous Monk on Oct 25, 2002 at 17:34 UTC | |
by fruiture (Curate) on Oct 25, 2002 at 17:50 UTC | |
by Anonymous Monk on Oct 25, 2002 at 17:34 UTC |