Narcissist: Difference between revisions

m
(Added Mathematica)
Line 227:
Note how the code takes advantage of Perl 6's ability to nest quoting delimiters.
 
<lang perl6>evalEVAL my $self = q{say slurp() eq q[evalEVAL my $self = q{]~$self~q[}]~10.chr ?? q{Beautiful!} !! q{Not my type.}}</lang>
 
{{out}}
<pre>$ narcissist='evalEVAL my $self = q{say slurp() eq q[evalEVAL my $self = q{]~$self~q[}]~10.chr ?? q{Beautiful!} !! q{Not my type.}}'
$ perl6 -e "$narcissist" <<<"$narcissist"
Beautiful!
Anonymous user