# a perl koan designed for a true perl monk sub zen { my $coderef = shift; # the code ref is a &$coderef; # Find the inner meaning }; zen (sub { print "How can I put a variable that is only visable to zen from within this anon code block?"; }); # mdupont
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 1: The zen of code blocks
by tilly (Archbishop) on Aug 23, 2001 at 16:08 UTC | |
by mdupont (Scribe) on Aug 23, 2001 at 18:18 UTC | |
by graq (Curate) on Aug 23, 2001 at 17:20 UTC | |
Re: The zen of code blocks
by Zaxo (Archbishop) on Aug 24, 2001 at 00:30 UTC | |
Re: The zen of code blocks
by Anonymous Monk on Aug 30, 2001 at 14:34 UTC | |
by Anonymous Monk on Aug 30, 2001 at 14:44 UTC | |
by tilly (Archbishop) on Aug 30, 2001 at 15:27 UTC | |
by demerphq (Chancellor) on Aug 30, 2001 at 16:50 UTC |
Back to
Perl Poetry