him

Untitled

him
Apr 22nd, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #! /usr/bin/perl
  2. system clear;
  3. use warnings;
  4. use strict;
  5.  
  6. print "What directory would you like to scan? \n";
  7. chomp(my $scandir=<>);
  8. print "scanning...$scandir....\n";
  9.  
  10.  
  11. opendir (FL, $scandir) or die $!;
  12. my %firstdir = readdir FL;
  13.  
  14. foreach my $item (%firstdir) {
  15. print "$item \n";
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment