On Sep 21, 3:16 am, shlo...@iglu.org.il (Shlomi Fish) wrote:
> A few comments about this code (which is derived from the old code):
>
> On Tuesday 21 September 2010 08:40:41 Jon Hermansen wrote:
>
> > Hi Abu,
> >  This code works for me:
>
> > #!/usr/bin/perl
>
> Add strict and warnings:
>
> http://perl-begin.org/tutorials/bad-elements/
>
> > my $d1, $d2, $sum;
>
> If you did, you know you would have to do:
>
> my ($d1, $d2, $sum);
>
> Although doing my $d1 = ...; my $d2 = ... is better.
>
>
>
> > $d1 = 6.892964 * 10 ** -309;
> > $d2 = 1.102874 * 10 ** -307;
>
> Generally, the m * 10 ** e notation is not needed, but it seems to be a bug in
> perl 5. I'll consult the perl5-porters about it.
>

Looks like there's a fix in place - works fine here:

osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
uname='Win32 strawberryperl 5.12.1.0 #1 Thu Jul 29 10:08:11 2010
i386'

--
Charles DeRykus


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to