I'm on Windows using Strawberry Perl. I run perl Makefile.pl for the Buckwalter Encode module, that works fine. When I run make, it says
Execution of -e aborted due to compilation errors
What is -e? Which file do I go to fix the error? Apparently there's a missing curly bracket on line 1, but I don't know which file has that missing curly bracket so I don't know where to look.
We use perl's -e option to specify on the command line code to be executed. From perlrun:
-e commandline
may be used to enter one line of program. If-eis given, Perl will not look for a filename in the argument list. Multiple-ecommands may be given to build up a multi-line script. Make sure to use semicolons where you would in a normal program.
For example:
$ perl -e 'print "Hello, world!\n"' Hello, world!
An error similar to the one you're seeing is
$ perl -e 'while (1) { print "foo!"'
Missing right curly or square bracket at -e line 1, at end of line
syntax error at -e line 1, at EOF
Execution of -e aborted due to compilation errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With