in reply to Re^4: Need alarm while getting error on SFTP
in thread Need alarm while getting error on SFTP

Have you read the documentation of Net::SFTP::Foreign for the ls method? It shows how to achieve what you want.

Replies are listed 'Best First'.
Re^6: Need alarm while getting error on SFTP
by salva (Canon) on Dec 03, 2015 at 13:37 UTC
    actually, what the OP needs is the glob method.
Re^6: Need alarm while getting error on SFTP
by ravi45722 (Pilgrim) on Dec 03, 2015 at 11:47 UTC

    Ya, I read that. Its showing on some wanted & unwanted methods. I tried it too. But not succeeded.

      So why are you hiding your code from us? Maybe showing the relevant part of the code and explaining to us how you think it should work and how it works instead can help us help you better.

         my $ls = $sftp->ls('/root/sanjay', wanted => qr/[0-9bx-z].c/) or die "unable to retrieve directory: ".$sftp->error;

        I written like this. Actually I have three files

        Server1.c Client2.c sftp.c

        But its showing only 2 files. Its not showing sftp.c