Perl-Sensitive Sunglasses | |
PerlMonks |
expect module: exp_continue errorby chime (Friar) |
on Jul 13, 2004 at 11:03 UTC ( [id://373916]=perlquestion: print w/replies, xml ) | Need Help?? |
chime has asked for the wisdom of the Perl Monks concerning the following question:
I have oogled and googled but I can't spot why I am getting an error when I run this program
I get the following error:
Bareword "exp_continue" not allowed while "strict subs" in use at perlscript.pl line 418.
When I take out the first sub part the error just appears in the next line containing exp_continue # *** The print function doesn't have any effect on curing this error. The code works when I comment out the use strict line, but this is bad and I would prefer to fix this error and keep using use strict.
My question is can any one spot any errors that might cause the code to give out the error. Is it obvious.?
When I use diagnostics I get some more information
Bareword "exp_continue" not allowed while "strict subs" in use at perlscript.pl line 421.
perlscript.pl had compilation errors (#1) (F) With "strict subs" in use, a bareword is only allowed as a subroutine identifier, in curly brackets or to the left of the "=>"symbol. Perhaps you need to predeclare a subroutine?
Uncaught exception from user code:
Back to
Seekers of Perl Wisdom
|
|