Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; mkdir "trip", 077; my $count = 1; for (1..4) { opendir(DIR,"trip" . $_); my @files = sort readdir DIR; for ( @files ) { rename ($_, "./trip/" . $count ) || die $!; $count++; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: directory access failure
by davido (Cardinal) on Jul 20, 2004 at 15:50 UTC | |
by Anonymous Monk on Jul 20, 2004 at 16:22 UTC | |
|
Re: directory access failure
by trantor (Chaplain) on Jul 20, 2004 at 15:17 UTC | |
by Anonymous Monk on Jul 20, 2004 at 15:43 UTC |