B
Bill H
Perl has so many quick ways of doing things, I wonder if there is an
easy way to find out how many entries in an array match a string?
if I use the following to get a directory list of the sub directory
"things" into @gfnames, is there an easy way of find out how many of
the entries in @gfnames contain the string ".txt" without going through
and comparing each one?
opendir(BASE, "things");
@gfnames = readdir(BASE);
closedir(BASE);
easy way to find out how many entries in an array match a string?
if I use the following to get a directory list of the sub directory
"things" into @gfnames, is there an easy way of find out how many of
the entries in @gfnames contain the string ".txt" without going through
and comparing each one?
opendir(BASE, "things");
@gfnames = readdir(BASE);
closedir(BASE);