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);
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);
Just got the blog installed… it’ll look more like the rest of the site shortly. So far, I like it! Installation was easy, seems to be fairly feature rich. (And it’s the blog software Matt Cutts uses…) As WordPress is PHP/mySQL based, this will be a good excuse to finally learn PHP & mySQL…