Your question is already answered. I would just like to give some friendly advice. Take a look at that 'if'. It's not going to work. Two problems:
The if produces a syntax error. Use this instead: if ($score > 12 and $score < 100)
$_ isn't assigned to anything. Replace it with: push @thescore,$thescore.
update: Ehrm, ofcourse, the second code should be push @thescore,$score. Thanks to various people msg:ing me and pointing that out. Apparently I wasn't 100% awake when I posted this. :)
--
dempa
In reply to Re: using push
by dempa
in thread using push
by jumk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |