Posted By

counter202 on 01/25/09


Tagged

dir files


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

icecreamboyy


list files in dir


 / Published in: Perl
 

URL: http://www.hidemail.de/blog/perl_tutor.shtml

  1. List text files in the current directory
  2.  
  3. @files = grep { -f and -T } glob '* .*';
  4. print "@files\n";

Report this snippet  

You need to login to post a comment.