[Prev][Next][Index][Thread]
(COOLLIST) Bad Humor in Perl Land
I was just searching the Perl[1] module list looking for some code to
simplify a parsing task I was about to code when I came upon section
20: Control Flow Utilities (callbacks and exceptions etc). One of the
modules was listed as
Name DSLI Description Info
----------- ---- -------------------------------------------- -----
Religion adpr Control where you go when you die()/warn() KJALB
so, if you want to go to the right place, you "use Religion". It is
considered bad form to "require Religion", however[2].
Silly Perl hackers. I just wish I had thought of it.
[1] Perl is a powerful scripting language mostly used on UNIX boxes.
Almost all of the software I write at work is done in Perl because it
is much faster to get something working in it than it is to use a
compiled language.
[2] "use" and "require" are two ways to pull external code into a Perl
program. "use" is the more modern interface because it also supports
explicit importing of functions and an initialization section.
"require" is quite basic, pretty much acting like "#include" in C.
--
Ben Combee, CAD Software Developer, cryptography fan, WWW guru
Motorola > MIMS > MSPG > CTSD > Advanced ICs > Austin Design Center > CAD
E-mail: combee@sso-austin.sps.mot.com Phone: (512) 891-7141
####
To unsubscribe from (COOLLIST), reply to this and tell me to delete you.
To see the (COOLLIST) archives, go to http://www.yak.net/coollist/.
Follow-Ups: