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


in reply to Re: SImulation of an Inventory.
in thread SImulation of an Inventory.

if($diff == 'hard'){...}

That isn't right either, because it does a numeric comparison.

It should be

if($diff eq 'hard'){...}

Replies are listed 'Best First'.
Re^3: SImulation of an Inventory.
by 2teez (Vicar) on Jun 24, 2012 at 17:51 UTC

    Oops! Thanks Eliya for catching that, you are right !