Posts Comments

VisualFuture

If technology was easy and always worked right the first time, you wouldn't be reading this.

  • Home
  • Contact Us

Build a list of Files

December 3, 2005 by dt_admin Leave a Comment

Here’s a quick snippet of code to build a list of files from a folder using Perl:

my $ext = '_plog.txt';
opendir (DIR, ".") || die "Can't open directory: $! n";
my @flist = grep (/$ext$/, readdir (DIR));
closedir (DIR);
Filed Under: Perl

Pages

  • Account
  • Contact Us
  • Div & Span Test
  • Div Test
  • GA Filter Examples
    • Exclude MSN Bot Traffic
    • Exclude Plaza Office
    • Exclude VF Office
    • Include Hostname in URI
    • Include This Subdomain Only
    • Lowercase Hostname
    • Lowercase Site Search Term
    • Lowercase URI
    • Mail Aggregation Comcast
    • Mail Aggregation Live Mail
    • Mail Aggregation Yahoo
    • Remove Trailing Slash on URI
  • Pie Register – Forgot Password
  • Pie Register – Login
  • Pie Register – Profile
  • Pie Register – Registration
  • Protected Content
  • Register

Return to top of page

Copyright VisualFuture © 2026