in reply to listing all files of a dir

G'day torres09,

See readdir. A slight modification of the second example should do what you want.

-- Ken

Replies are listed 'Best First'.
Re^2: listing all files of a dir
by torres09 (Acolyte) on Jul 12, 2013 at 06:27 UTC
    thanks for replying , just one more thing how to point to the current directory as in
    opendir(my $dh, $some_dir) || die;

    instead of $somedir , how can we have present directory

      use Cwd

      These questions are searchable.


      Dave

      You can use Cwd for that.

      -- Ken

        no I did getcwd , but I am on windows , so it gives error stating "unidentified subroutine "