in reply to using push

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

Replies are listed 'Best First'.
Re: Re: using push
by jumk (Initiate) on Jan 24, 2003 at 16:12 UTC
    thanks all