in reply to Using STDIN in object creation (Moose)

It seems you entered the string into the debugger's STDIN rather than the program's one.

Verification:

$ perl -d -e1 Loading DB routines from perl5db.pl version 1.44 Editor support available. Enter h or 'h h' for help, or 'man perldebug' for more help. main::(-e:1): 1 DB<1> Comments? We don't need no stinking comments. "no" not allowed in expression at (eval 6)[/usr/lib/perl5/5.20.1/perl5 +db.pl:732] line 2, at end of line syntax error at (eval 6)[/usr/lib/perl5/5.20.1/perl5db.pl:732] line 2, + near "need no stinking "

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Using STDIN in object creation (Moose)
by Anonymous Monk on Apr 13, 2016 at 22:59 UTC

    Okay, I'll just add a comment to myself to not enter the word "need" as input when single stepping perldb in emacs. I've been doing Perl since the 80's, and this error was just strange to me. Thanks.