in reply to Re^2: IRC Stats
in thread IRC Stats
Huh? I don't find anything in either of those snowdog downloads that matches "statsm" -- I don't have a clue what you're talking about.
I doens't create a file statsmmrtg.
Huh?? I don't find anything in either of those snowdog downloads that matches "statsmmrtg" -- I don't have a clue what you're talking about (again).
Maybe it's just my own lack of exposure to the domain you're trying to work with here, but I also don't see any evidence that you're actually responding directly to anything I said in my previous reply.
Okay -- I think I get it. In the OP code above, there's this, at line 128:
Now, can you explain why this variable ($statsmmrtg) is never used anywhere else in the OP script? It seems logical that if you only assign a value to it and then never use it, it won't show up in any file or whatever.$statsmmrtg=$i[3];
Then at lines 195-199, you have:
and these are the only mention of this variable ($statsm) -- it never gets anything assigned to it. So what would you expect to appear in a data file, if all you print to it is an undefined (null, empty) value?if ($statsm ne "") { open(OUTPUT, ">$datapath/statsmplain"); print OUTPUT "$statsm"; close OUTPUT; }
Maybe if you used the same variable name in these two places, you'd get your data into that file (assuming you have write permission).
Turning on warnings would help -- it'll tell you when you only use a given variable name once, and when you try to print an undefined value. Using strict would help more.
Oh well. Good luck with that, whatever it is.
|
|---|