Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello dear Monks,
I would highly appriciate some help here.
my Programm prints the lines as expected from print if /ORA-/ || /Fehler/ || /ORACLE-Fehler/;in the below Code, but then always ends with : Couldn't read from remote file: End of file at ./pruefeRmanDUP.pl line 96.
Here me line of codes which fails;
Any Idea what I am doing wrong here? Thanks a lot Diana[...] $fh1 = $sftp->open("$file") or die $sftp->error; while (<$fh1>) { print if /ORA-/ || /Fehler/ || /ORACLE-Fehler/; # my $last = $_; # print $last; } [...]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: while (<FH>) always ends with "Couldnt read from remote file: End of file at"
by salva (Canon) on Jul 06, 2017 at 14:15 UTC | |
|
Re: while (<FH>) always ends with "Couldnt read from remote file: End of file at"
by haukex (Archbishop) on Jul 06, 2017 at 10:52 UTC | |
|
Re: while (<FH>) always ends with "Couldnt read from remote file: End of file at"
by Anonymous Monk on Jul 06, 2017 at 10:27 UTC | |
by Anonymous Monk on Jul 06, 2017 at 12:22 UTC | |
by haukex (Archbishop) on Jul 06, 2017 at 13:30 UTC | |
|
Re: while (<FH>) always ends with "Couldnt read from remote file: End of file at"
by Anonymous Monk on Jul 06, 2017 at 10:25 UTC |