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);
In reply to Re: Changing to input
by zejames
in thread Changing to input
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |