in reply to the star still shines

I like the art work (very well done), but when I try to run it on Windows 10 using Perl 5.24.1 I get this error message:

Can't modify subtraction (-) in scalar assignment at star.pl line 37, +at EOF (Might be a runaway multi-line << string starting on line 2) Execution of star.pl aborted due to compilation errors.

"It's not how hard you work, it's how much you get done."

Replies are listed 'Best First'.
Re^2: the star still shines
by shmem (Chancellor) on Dec 08, 2019 at 14:23 UTC

    Remove the first and the last line and run it with

    perl -Mre=eval star.pl

    To see what it does, run

    perl -MO=Deparse -Mre=eval star.pl

    You will need a curl executable, since the script fetches a file from the Zapatista Web page with curl.
    If you don't have curl, you can just copy over lwp-download.bat to curl.bat in your strawberry perl/bin folder. Note that the retrieved page will be saved to index.htm in the current working directory. It is in spanish, but there are links on the page leading to translations into other languages.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'