list files in dir


/ Published in: Perl
Save to your folder(s)



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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.