[Omaha.pm] opendir, readdir vs. glob

Jay Hannah jay at jays.net
Mon Sep 25 19:22:35 PDT 2006


Ok, when glob is this easy to use why have I been using opendir and  
readdir for years?

my @files = glob "/home/jhannah/*";

What could be simpler than that? Anyone out there using Perl on  
Windows? Does glob work there?

http://perldoc.perl.org/functions/glob.html

j




More information about the Omaha-pm mailing list