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

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.

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

Replies are listed 'Best First'.
Re^8: Need alarm while getting error on SFTP
by ravi45722 (Pilgrim) on Dec 03, 2015 at 11:58 UTC
     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.