-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger loses record of last input filehandle #649
Comments
From Richard@waveney.demon.co.ukThis is a fault when using the debugger. Using eof to test the end file of ILLUSTRATION: *type BugTest *perl BugTest *perl -d BugTest Loading DB routines from perl5db.pl version 1.0402 Enter h or `h h' for help. main::(BugTest:1): open (IN,"BugTest"); main::(BugTest:2): while (<IN>) { print "Lines $.\n" if eof } main::(BugTest:2): while (<IN>) { print "Lines $.\n" if eof } REASON The record of the last input filehandle is overridden, when the debugger PROBLEM / SOLUTION The output file handle can be found and restored by using select. There However according to the perlvar if "$." is localised this has the effect of Ilya? *perl -V Characteristics of this binary (from libperl): -- Richard@waveney.demon.co.uk |
1 similar comment
From Richard@waveney.demon.co.ukThis is a fault when using the debugger. Using eof to test the end file of ILLUSTRATION: *type BugTest *perl BugTest *perl -d BugTest Loading DB routines from perl5db.pl version 1.0402 Enter h or `h h' for help. main::(BugTest:1): open (IN,"BugTest"); main::(BugTest:2): while (<IN>) { print "Lines $.\n" if eof } main::(BugTest:2): while (<IN>) { print "Lines $.\n" if eof } REASON The record of the last input filehandle is overridden, when the debugger PROBLEM / SOLUTION The output file handle can be found and restored by using select. There However according to the perlvar if "$." is localised this has the effect of Ilya? *perl -V Characteristics of this binary (from libperl): -- Richard@waveney.demon.co.uk |
Migrated from rt.perl.org#1522 (status was 'resolved')
Searchable as RT1522$
The text was updated successfully, but these errors were encountered: