Last active
February 27, 2018 23:58
-
-
Save penryu/38e38c58c51dcb05dc24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no