yeast? $fr->weigh( 9, id => 'yeast' ); # emit to a data structure that could be converted to JSON use Data::Dumper; print Dumper $fr->details; The observant may notice that the water and sal