in reply to logic problem with perl game
{ $shield=param('shield'); $correctryhm=param('correctryhm'); $response=param('response'); $win=param('win'); $win=$win+1; }
to
{ $shield = param( 'shield' ); process(); } # .... sub process { $correctryhm = param('correctryhm'); $response = param('response'); $win = param('win'); $win=$win+1; }
This will reduce the size of your code.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: logic problem with perl game
by mynameisG (Novice) on Dec 04, 2010 at 23:16 UTC |