# Oh seeker of Perl Wisdom, # do not forget the karma of eval # find the ZEN of eval. # dont be fooled : see through the illusion. # Remember that the code is just in your mind! sub zen { my $thought = shift; &$thought; }; my $karma=0; # You do start out with no karma! zen do { print q[Oh Perlmonks : wisely avoid the endless cycle of karma created by the belief in the form of nibanna for the comtemplation of nibanna takes quite much more memory than you can afford in this cycle of karma! You will have to learn to see through the endless cycle of forms + to find the essence of being!]; my $koan = q{ my $program = q[ my $variable = '$karma++;print "OM($karma)\n";eval( +$variable)'; print $variable; my $value = eval($variable); print $value; ]; print $program; eval $program; }; zen(do{eval $koan}); } #$this = "copyleft 2001 mdupont"; #bless(\sub {bless \$this,&$that;},"PerlZen");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: TheZen of Eval (and how to avoid bad karma)
by mdupont (Scribe) on Aug 28, 2001 at 02:34 UTC |
Back to
Perl Poetry