The messages you receive tell exactly what's wrong:
Global symbol "$count" requires explicit package name at test.pl line +14. Global symbol "$first" requires explicit package name at test.pl line +15. Global symbol "$first" requires explicit package name at test.pl line +16. syntax error at test.pl line 16, near ");" Global symbol "$sum" requires explicit package name at test.pl line 18 +. Global symbol "$count" requires explicit package name at test.pl line +21. Global symbol "$sum" requires explicit package name at test.pl line 22 +.
Define $count, $first and $sum, like the other variables in your script. For example, add the following line in the appropriate place:
my ($count, $first, $sum);Next, No semi colon required here:
if ($first=='H'); {
Should be:
if ($first=='H') {
I suggest spending some time working on the basics:
In reply to Re^5: reading and working with grow.out files
by marto
in thread reading and working with grow.out files
by rmgzsm9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |