in reply to Re^3: enumerating values for slopes
in thread enumerating values for slopes
$ perl slope5.pl Can't use string ("4.3125") as an ARRAY ref while "strict refs" in use + at ../utils1.pm line 39. $ cat slope5.pl #!/usr/bin/perl -w use strict; use 5.010; use Math::Trig; BEGIN { push @INC, ".."; } use utils1; my @AoA; my $aoa_ref = \@AoA; my @vector = (4.3125, 0.4375); push @AoA, @vector; @vector = (4.375, 0.375); push @AoA, @vector; @vector = (4.4375, 0.375); print_aoa($aoa_ref); __END__ $
Thought I would be comparing hypotenuses to heights but can't see why perl doesn't this is ok.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: enumerating values for slopes
by Laurent_R (Canon) on Sep 23, 2014 at 17:36 UTC | |
by farang (Chaplain) on Sep 24, 2014 at 02:07 UTC | |
by Laurent_R (Canon) on Sep 24, 2014 at 06:59 UTC | |
by Aldebaran (Curate) on Sep 24, 2014 at 06:30 UTC | |
|
Re^5: enumerating values for slopes
by Laurent_R (Canon) on Sep 23, 2014 at 06:11 UTC | |
by Aldebaran (Curate) on Sep 23, 2014 at 07:10 UTC | |
|
Re^5: enumerating values for slopes
by Aldebaran (Curate) on Sep 23, 2014 at 06:40 UTC |