Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a list of filenames, and for each one I want to create a directory with that filename. However, I keep getting directories with '?' on the end that don't actually seem to exist. Can anyone advise? Thanks!
open (FILE, "all_controls.txt") or die "can't open file $!"; my @file=<FILE>; foreach my $file (@file) { mkdir "$file"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mkdir in a loop?
by ambrus (Abbot) on Apr 05, 2006 at 09:31 UTC | |
|
Re: mkdir in a loop?
by murugu (Curate) on Apr 05, 2006 at 09:46 UTC | |
|
Re: mkdir in a loop?
by wand3ringscript3r (Initiate) on Apr 05, 2006 at 15:01 UTC | |
|
Re: mkdir in a loop?
by wand3ringscript3r (Initiate) on Apr 05, 2006 at 14:54 UTC |