Raven434
Member
Urgh.
Not enough coffee this morning.
I am trying to do research to write a small scriptlet that will calculate the MPA {Meat Per Adventure} for a day's adventures.
I know from a logic perspective it should basically look like this:
Meat Gained / Advs Used = MPA
What I am missing in perusing various online resources, invoking 'ashref', etc. is how to put these 2 pieces of information together.
I also looked at the huge body of work our many submitters here have offered to see if I could pare down some of their more complex pieces.
Ideally, it would simply say
"You MPA for today was 888". Your ValueofAdventure variable is set for 779"
I know this is simple but I am having complete brain cramp on putting this together.
I know a better way to do it would be to account for possible crashes, etc and write a $STARTING_MEAT value out somewhere and at the end of the run do the delta on ($FINISHING_MEAT - $STARTING_MEAT) / Advs Used
Thanks.
Not enough coffee this morning.
I am trying to do research to write a small scriptlet that will calculate the MPA {Meat Per Adventure} for a day's adventures.
I know from a logic perspective it should basically look like this:
Meat Gained / Advs Used = MPA
What I am missing in perusing various online resources, invoking 'ashref', etc. is how to put these 2 pieces of information together.
I also looked at the huge body of work our many submitters here have offered to see if I could pare down some of their more complex pieces.
Ideally, it would simply say
"You MPA for today was 888". Your ValueofAdventure variable is set for 779"
I know this is simple but I am having complete brain cramp on putting this together.
I know a better way to do it would be to account for possible crashes, etc and write a $STARTING_MEAT value out somewhere and at the end of the run do the delta on ($FINISHING_MEAT - $STARTING_MEAT) / Advs Used
Thanks.