in reply to Refusal to Run
If it does, and I bet it will, it would be a good idea to set
near the top of your script.$| = 1;
Furthermore, your gives a few warnings, caused by
which can be fixed by eiter setting $x to 0 instead, or by doing
which does the same thing, but is shorter, and doesn't warn if $x is undef.undef $x; for(@exes){ $x += $_; }
Worse, there's a nasty error, that makes your script output a wrong result: the power operator in Perl is **, not ^, which does XOR. See perlop. So:
for(@exes){ $tot += ($_-$ave)**2; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Refusal to Run
by Andrew_Levenson (Hermit) on Aug 03, 2006 at 15:52 UTC |