Skip to content

Instantly share code, notes, and snippets.

@penryu
Last active February 27, 2018 23:58
Show Gist options
  • Save penryu/38e38c58c51dcb05dc24 to your computer and use it in GitHub Desktop.
Save penryu/38e38c58c51dcb05dc24 to your computer and use it in GitHub Desktop.
# Note that the first three lines are just setup so that the last line
# compiles and runs. Have a look and answer the two questions below:
package Father;
$hacked += 'Perl is awesome!';
$i = {have => ($me = sub {[{Perl => "@{[print qq{Success!\n}]}"}]})};
bless $me, Father for $i->{have}()[$hacked]{Perl};
# 1) Without running it, what does the code display?
# 2) Would you ever want me to write Perl for you? ... for anyone?
@MauledByLove
Copy link

no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment