[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Problem w/making runtime version of script



>The statement
>
>	use constant whatever
>
>is not Perl.  :-)
 
Huh?

then why am I bothering with:

use constant PI   => atan2(1,1) * 4.0;

Still, there's no need to define Truth within Perl.  It's not like C, 
where you don't know what truth is unless someone tells you.  Better to 
leave the constants pragma for important values like pi, and defining 
thing like deg2rad (there's a fine example in the pod for constant.pm of 
just such a thing (better even than from Math::Trig, which actually pulls 
out "use constant" to define PI and a whole buncha other stuff.

Not Perl?



# Fungal Parataxonomy                   Mycology Information (Mycoinfo)
# Webmaster, Staff Writer      **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/> 
#
# First they ignore you. Then they laugh at you. Then they fight you.
# Then you win.                                     --Mohandas Gandhi


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org