Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Christmas Package Obfuscation

by kschwab (Vicar)
on Dec 08, 2018 at 22:36 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1226982]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-24 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found