my @files = do { local *DH; opendir( DH, $dir ) or die 'Cannot open ' . $dir; grep { -f $_ } readdir(DH); };
--
John.
In reply to Re: localizing handles with anonymous subroutines
by jmcnamara
in thread localizing handles with anonymous subroutines
by particle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |