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

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

  • Comment on Re^6: Need alarm while getting error on SFTP

Replies are listed 'Best First'.
Re^7: Need alarm while getting error on SFTP
by Corion (Patriarch) on Dec 03, 2015 at 11:51 UTC

    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

        Have you thought about what your regular expression can match? Maybe there are things that are not matched. For example, your regular expression does not match the letter p as the third letter from the right in a filename.