Librenix  
(Show all Perl articles . . .
)  
Headlines | Linux | Apps | Coding | BSD | Admin | News
Information for Linux System Administration 

perl dispatch table examples

Up
vote
Down

Dispatch Table: The fancy name for a hash of code-refs...
In perl, code is a first class data type... you can talk about it in the same way you would talk about arrays or hashes, you can take references to them (giving you a code-ref ) and you can de-reference them (which runs the code);

Code-references are just scalars that refers to something, and you get them by using the reference-to operator:
 read more | score:9100 | -f00li5h, December 17, 2010
More Programming articles...

Abstract Art in Tallahassee

coding headlines

Command substitution in Bash scripting

Build scripts from command history

Dzil: a casual walkthrough of Dist::Zilla

PHP network scripts

Open Source Web Design and Development Tools

Java development 2.0 Cloud storage with SimpleDB

 

Firefox sidebar

Site map

Site info

News feed

Features

Login
(to post)

Search

 
Articles are owned by their authors.   © 2000-2012 Ray Yeargin