Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Christmas Package Obfuscation

by kschwab (Vicar)
on Dec 08, 2018 at 22:36 UTC ( #1226982=note: print w/replies, xml ) Need Help??


in reply to Christmas Package Obfuscation

Got a note that it bombs with "syntax error .. line 23, at EOF" for some people.

Verified that I see the error when running it on an online perl compiler, here: https://rextester.com/l/perl_online_compiler.

But, it does run here: https://www.tutorialspoint.com/execute_perl_online.php.

Now I'm curious what the problem is.

Update: Added a semicolon after the last print and it seems to fix the syntax error for those versions of Perl where it was bombing out.

Also, spoiler below if interested:

$ perl -MO=Deparse script $;; $^; 'Christmas'->Merry(!print("Is print broken?\n")) unless s/^/$\\nTHE_AS +CII_ART_WAS_HERE\n/ and 'Happy Holidays'; print $_;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1226982]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2019-09-19 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (238 votes). Check out past polls.

    Notices?