Help for this page

Select Code to Download


  1. or download this
        opendir( DIR, $targetdir ) || die $!;
        my @files = grep{ /\.sf$/ } readdir( DIR );
    
        ## do interesting stuff with @files
    
  2. or download this
       ## when passing something like *.pl, make sure
       ## to single quote it so that the shell doesn't
    ...
       ##    scrip.pl '/foo/bar/*.pl'
       ##
       my @entries = <$ARGV[0]>;