Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^5: reading and working with grow.out files

by marto (Bishop)
on Apr 29, 2012 at 14:10 UTC ( #967937=note: print w/ replies, xml ) Need Help??


in reply to Re^4: reading and working with grow.out files
in thread reading and working with grow.out files

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:


Comment on Re^5: reading and working with grow.out files
Select or Download Code
Re^6: reading and working with grow.out files
by rmgzsm9 (Novice) on Apr 29, 2012 at 15:02 UTC

    Thanks. It worked. Not exactly I wanted, but it worked

      Telling you how to fix the code you provided wasn't exactly what you wanted, or your code doesn't do what you want?

        No you got me wrong. I said your suggestions worked. Thank you. But the code was still not upto the mark I originally wanted it to be. I still have to amend it further. Also, the links you gave me were helpful. thanks again. But I didn't mean to offend you. Why would I do that? You helped me. I am thankful for that.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://967937]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (17)
As of 2015-07-02 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls