in reply to Changing to input
Print "Enter directory : "; chomp($dir = <STDIN>); opendir DIR, $dir or die "Unable to open directory $dir : $!\n"; @files = grep { !/\.\.?/ } readdir DIR; print "$dir contains " . join(',', @files);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Changing to input
by Anonymous Monk on Jul 03, 2002 at 13:40 UTC | |
by Aristotle (Chancellor) on Jul 03, 2002 at 14:00 UTC | |
by Anonymous Monk on Jul 03, 2002 at 14:18 UTC |