[boulder.pm] A little perl thing I just discovered...

Chip Atkinson chip at rmpg.org
Wed Sep 18 16:30:04 CDT 2002


Hi everyone.  Here's something that may be obvious to some:

#!/usr/bin/perl

use strict;

while (</lib/lib*>) {
  print "$_\n";
}

This prints out all the files that match /lib/lib*.  Wow.  I thought I had
to do an opendir and a readdir.

Chip




More information about the Boulder-pm mailing list