in reply to Replace $a with $b if $a ne $b
so I will hopefully get output likeforeach $file (@filelist) { ($dir, $name) = split '/', $file; $dir =~ s/$currentdir//; printf("%s %s\n", $dir, $name); $currentdir !~ s/$dir/$dir/; }
DIR1 FILE1 FILE2 FILE3 DIR2 FILE4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replace $a with $b if $a ne $b
by Roy Johnson (Monsignor) on May 06, 2005 at 19:27 UTC | |
|
Re^2: Replace $a with $b if $a ne $b
by graff (Chancellor) on May 08, 2005 at 04:12 UTC | |
|
Re^2: Replace $a with $b if $a ne $b
by holli (Abbot) on May 08, 2005 at 06:55 UTC |