Article View: comp.lang.perl.misc
Article #241Re: eval and Speed
From: Mike Heins
Date: Sun, 14 Apr 1996 00:00
Date: Sun, 14 Apr 1996 00:00
22 lines
1569 bytes
1569 bytes
Olaf Walkowiak (si0015@aixrs1.hrz.uni-essen.de) wrote:
: Hello all,
:
: if have a short question:
:
: Should I avoid the use of "eval" if possible, or doesnt it slow down
: the speed very much?
It is not awful, but you should rarely put it inside a loop. It
usually isn't necessary with Perl 5, with its references and
anonymous subroutines.
I use it all the time to trap errors, in the form eval BLOCK.
--
Regards,
Mike Heins [mailed and posted] http://www.iac.net/~mikeh ___ ___
Internet Robotics |_ _|____ |_ _|
Few blame themselves until they 131 Willow Lane, Floor 2 | || _ \ | |
have exhausted all other Oxford, OH 45056 | || |_) || |
possibilities. |___| _ <|___|
-- anonymous mikeh@iac.net 513.523.5028 |_| \_\
Technical Details
Message-ID:
<4krk8t$q27@vixen.cso.uiuc.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4krgge$fn2@sun1.uni-essen.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1043e7,b3b96df39b5a8de7 X-Google-Attributes: gid1043e7,public X-Google-Thread: fa0ae,b3b96df39b5a8de7 X-Google-Attributes: gidfa0ae,public X-Google-Thread: fd796,b3b96df39b5a8de7 X-Google-Attributes: gidfd796,public From: mheins@prairienet.org (Mike Heins) Subject: Re: eval and Speed Date: 1996/04/14 Message-ID: <4krk8t$q27@vixen.cso.uiuc.edu> X-Deja-AN: 147481234 references: <4krgge$fn2@sun1.uni-essen.de> followup-to: comp.lang.perl.misc,fj.lang.perl,comp.infosystems.www.authoring.cgi organization: Prairienet newsgroups: comp.lang.perl.misc,fj.lang.perl,comp.infosystems.www.authoring.cgi