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

 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

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

    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.