matyasbot has asked for the wisdom of the Perl Monks concerning the following question:
I'm having trouble getting Perl 5.10 features working in the Perl debugger.
I'm using Perl 5.12.3 on Red Hat Enterprise Linux 6, starting the debugger with the following line:
perl -dE0and I get the following error when I run say "Hey";
String found where operator expected at (eval 11)[/s/perl-5.12.3/amd64 +_rhel6/lib/5.12.3/perl5db.pl:638] line 2, near "say "Hey"" at (eval 11)[/s/perl-5.12.3/amd64_rhel6/lib/5.12.3/perl5db.pl:638] li +ne 2 eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $ +^D = $^D | $DB::db_stop; say "Hey";; ;' called at /s/perl-5.12.3/amd64_rhel6/lib/5.12.3/perl5db.pl line 638 DB::eval called at /s/perl-5.12.3/amd64_rhel6/lib/5.12.3/perl5 +db.pl line 3448 DB::DB called at -e line 1 (Do you need to predeclare say?) at (eval 11)[/s/perl-5.12.3/amd64_rhel6/lib/5.12.3/perl5db.pl:638] li +ne 2 eval '($@, $!, $^E, $,, $/, $\\, $^W) = @saved;package main; $ +^D = $^D | $DB::db_stop; say "Hey";; ;' called at /s/perl-5.12.3/amd64_rhel6/lib/5.12.3/perl5db.pl line 638 DB::eval called at /s/perl-5.12.3/amd64_rhel6/lib/5.12.3/perl5 +db.pl line 3448 DB::DB called at -e line 1 syntax error at (eval 11)[/s/perl-5.12.3/amd64_rhel6/lib/5.12.3/perl5d +b.pl:638] line 2, near "say "Hey""
Doing use '5.12.0', or use feature ':5.12' doesn't help either. How can I get this to work?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use feature in perl debugger?
by salva (Canon) on Mar 08, 2012 at 22:41 UTC | |
|
Re: use feature in perl debugger?
by LanX (Saint) on Mar 08, 2012 at 22:40 UTC |