Maybe some of you would be willing to share some of your favorites, or maybe this has come up more than I thought at the Monastery and you could point me to some nice nodes?
Here's a few recent ones that we've enjoyed. The first of which is similar to something I saw on Perlmonks in the past (I don't recall the node).
WWTP #1
package one; sub two { print "In one::two\n"; } package main; $one = "main"; sub main { return "one: " }; sub two { print "In main::two\n"; } $one->two(); "one"->two();
WWTP #2
$one = "two"; $two = "three"; $three = "four"; $four = "five"; $five = "six"; print $$$one . "\n"; print $$${"one"} . "\n";
WWTP #3
$one = "two"; %$one:: = %::; print %$one . "\n"; %$one = %::; print %$one . "\n";
Staunch
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What will this print?
by Abigail-II (Bishop) on Mar 21, 2003 at 18:58 UTC | |
by staunch (Pilgrim) on Mar 21, 2003 at 19:17 UTC | |
|
Re: What will this print?
by demerphq (Chancellor) on Mar 21, 2003 at 19:53 UTC | |
by PodMaster (Abbot) on Mar 22, 2003 at 07:54 UTC | |
|
Re: What will this print?
by grantm (Parson) on Mar 21, 2003 at 19:56 UTC | |
by Aristotle (Chancellor) on Mar 31, 2003 at 09:23 UTC | |
|
Re: What will this print?
by sschneid (Deacon) on Mar 21, 2003 at 18:32 UTC |