http://www.perlmonks.org?node_id=1229208

BEGIN{print','; BEGIN{print'r'; BEGIN{print'e'; BEGIN{print'k'; BEGIN{print'c'; BEGIN{print'a'; BEGIN{print'H'; BEGIN{print' '; BEGIN{print'l'; BEGIN{print'r'; BEGIN{print'e'; BEGIN{print'P'; BEGIN{print' ';BEGIN{print'r'; BEGIN{print'e'; BEGIN{print'h'; BEGIN{print't'; BEGIN{print'o'; BEGIN{print'n'; BEGIN{print'A'; BEGIN{print' '; BEGIN{print't'; BEGIN{print's'; BEGIN{print'u'; BEGIN{print'J'; BEGIN{print''; }}}}}}}}}}}}}; }}}}}}}}}}}}};

Inspired by Assignment and use statement in the same BEGIN block and

perl -e "$}.=qq(BEGIN{print qq($_);)for(q(,rekcaH lreP rehtonA tsuJ)=~/./g);$}.=q(})x25;eval$}"

A little modification after having seen it under the morning light.

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re: BEGIN X
by shmem (Chancellor) on Feb 01, 2019 at 14:39 UTC

    No BEGIN without END ;-)

    BEGIN { print "r"; END { print " "; END { print "P"; BEGIN { print "e"; BEGIN { print "h"; END { print "e"; END { print "r"; BEGIN { print "t"; BEGIN { print "o"; END { print "l"; END { print " "; BEGIN { print "n"; BEGIN { print "a"; END { print "H"; END { print "a"; BEGIN { print " "; BEGIN { print "t"; END { print "c"; END { print "k"; BEGIN { print "s"; BEGIN { print "u"; END { print "e"; END { print "r"; BEGIN { print "J"; BEGIN { print ""; END { print ","; }}}}}}}}}}}}} }}}}}}}}}}}}}
    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'