oops. i double posted as well. sheesh....
|
this should fix it.
Code:
my $return_count = ( ( scalar keys %itemcount ) - $knife_back ); |
Just a comment: glancing at the work above, it seems it is getting way more complicated than it should be.
|
sure, he could very easily have chosen to use generic text (or none at all) when handing the unused items back, but that's pretty boring.
|
Sorry for delayed response. Been so busy. I'll take a look at this and let ya know.
|
Finally got to test it. I still get this response:
Quote:
|
it's the superfluous 'my' before setting $knife_back to 1. that causes $knife_back to have a value of 1 only inside of that block (it's a completely separate instance of the variable, actually). total newbie mistake on my part.
|
All times are GMT -4. The time now is 09:25 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.