Closed p5pRT closed 20 years ago
When I enter a very long input line in the Perl debugger\, it appears to be chopped off around the 256 character mark. [Since it appears to expect a new token at that point\, I was unable to verify the exact location where things break\, but I suspect 256 or 255 characters\, for obvious reasons].
Here's a sample transcript from the debugger (taken while running "perl -de 42"):
DB\<24> $x = '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789'
DB\<24> p $x 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 DB\<25> $x = '01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789' String found where operator expected at (eval 29) line 2\, at end of line eval '($@\, $!\, $^E\, $\,\, $/\, $\\\, $^W) = @saved;package main; $^D = $^D | $DB::db_stop; 123456789\';
;' called at /usr/local/lib/perl5/5.00503/perl5db.pl line 1239 DB::eval called at /usr/local/lib/perl5/5.00503/perl5db.pl line 1133 DB::DB called at -e line 1 (Missing operator before ?) eval '($@\, $!\, $^E\, $\,\, $/\, $\\\, $^W) = @saved;package main; $^D = $^D | $DB::db_stop; 123456789\';
;' called at /usr/local/lib/perl5/5.00503/perl5db.pl line 1239
DB::eval called at /usr/local/lib/perl5/5.00503/perl5db.pl line 1133
DB::DB called at -e line 1
Can't find string terminator "'" anywhere before EOF at (eval 29) line 2\, \
;' called at /usr/local/lib/perl5/5.00503/perl5db.pl line 1239 DB::eval called at /usr/local/lib/perl5/5.00503/perl5db.pl line 1133 DB::DB called at -e line 1
DB\<26>
I apologise for not providing a more detailed analysis.
Many thanks.
Ariel Scolnicov writes:
When I enter a very long input line in the Perl debugger\, it appears to be chopped off around the 256 character mark.
What happens if you enter this line to
perl -wle '$in = \
?
Most probably it is your system's tty-handler's buffer. Get Term::ReadLine::{Perl|Gnu} to substitute a different input method.
Ilya
Migrated from rt.perl.org#1208 (status was 'resolved')
Searchable as RT1208$