http://qs321.pair.com?node_id=251330


in reply to Seti stats

OK, I am a complete newbie, reading everythign I can't ge t my hands on and thought this would be a good palce to start (as I am a SETI buff), on running this (and entering my email address) this is what I get (with the -w modifier).
C:\Perl\snips>perl -w setistats.pl Possible unintended interpolation of @stny in string at setistats.pl l +ine 6. Name "main::stny" used only once: possible typo at setistats.pl line 6 +. Use of uninitialized value in substitution (s///) at setistats.pl line + 15. Use of uninitialized value in substitution (s///) at setistats.pl line + 16. Use of uninitialized value in substitution (s///) at setistats.pl line + 17. Use of uninitialized value in scalar chomp at setistats.pl line 21. Use of uninitialized value in pattern match (m//) at setistats.pl line + 22. Use of uninitialized value in string at setistats.pl line 23. Use of uninitialized value in pattern match (m//) at setistats.pl line + 24. Use of uninitialized value in string at setistats.pl line 25. Use of uninitialized value in pattern match (m//) at setistats.pl line + 26. Use of uninitialized value in string at setistats.pl line 27. Use of uninitialized value in pattern match (m//) at setistats.pl line + 28. Use of uninitialized value in concatenation (.) or string at setistats +.pl line 2 9. Use of uninitialized value in pattern match (m//) at setistats.pl line + 30. Use of uninitialized value in string at setistats.pl line 31. Use of uninitialized value in string at setistats.pl line 32. Use of uninitialized value in string at setistats.pl line 33. Use of uninitialized value in pattern match (m//) at setistats.pl line + 34. Use of uninitialized value in pattern match (m//) at setistats.pl line + 36. Seti stats () Results: Tot CPU Time: Avg Work Time: Last Result: Rank: / (Peers ) Use of uninitialized value in concatenation (.) or string at setistats +.pl line 4 6. % Position:
-- Is it something simple i am doing wrong? Any help would be appreciated.

Replies are listed 'Best First'.
Re: Re: Seti stats
by Mr. Muskrat (Canon) on Apr 17, 2003 at 21:22 UTC

    I recommend using vek's SETI::WebStats instead. It makes writing a Seti@home stats script so much easier.

    From the synopsis:

    use SETI::WebStats; my $emailAddr = "foo\@bar.org"; my $seti = SETI::WebStats->new($emailAddr); my $ranking = $seti->rank; my $unitsProcd = $seti->numResults; my $userInfo = $seti->userInfo; for (keys(%$userInfo)) { print $_, "->", $userInfo->{$_}, "\n"; }

      Thanks for taking the time to point it out, seems there are a ton of resources available to us.
      I am still figuring out how to install packages, what i can use for an IDE and the like. If you have any pointers, they would be appreciated.
      I have the O'reilly books and am getting through "Learning Perl", it is a fun read, not the dry tome I expected.
      Thanks again! Best regards, Bill