Steven W. Orr wrote:
On Friday, Nov 23rd 2007 at 14:53 -0000, quoth Jerrad Pierce:
=>>I admit I'm better with python these days than I am with perl, but one of
=>>the caveats that the dispatch table should be taught with is that
=>>selecting the correct code ref is different from calling through it.
=>
=>You might want to explain yourself in fuller, properly punctuated,
=>detail there (particularly since it seems to not be about hashes per se)
Sorry, I thought I was clear and properly punctuated.
Given:
table = { ... }
Your example would be clearer if writing in Perl. Do you mean?
%table = (
foo => \&foo,
# ...
);
Or?
$table = {
foo => \&foo,
# ...
};
--
Just my 0.00000002 million dollars worth,
Shawn
+------------\
| Shangri La \
| 40,000 km /
+------------/