in reply to find files ina Directory while not changing to it

As you could at least search and get here: How do I read all the file names of a directory into an array?
opendir DIR, $dir or die "cannot open dir $dir: $!"; my @file= readdir DIR; closedir DIR;

Replies are listed 'Best First'.
Re^2: find files ina Directory while not changing to it
by Anonymous Monk on Mar 16, 2005 at 05:41 UTC
    ya , this is a way to find all files in directory bit i want to store in array only files with particular extension, say all .file type files
      That's the part you could try to search for yourself. i'm not going to write code for you, i point to a direction you could search for. (and learn perl this way)
      If a simple thing like reading a dir, and or changing / adding the filnames to an array is to hard for you, i will help.
      But if you don't want to put any effort in searching for examples, show what you tried till now, i don't even want to help.
      A reply falls below the community's threshold of quality. You may see it by logging in.