jumk has asked for the wisdom of the Perl Monks concerning the following question:
hi guys , I am new to using push
I did the following
if ( $score > 12 ) && ( $score < 100 ) { push @thescore, $_};
the problem I am having is how to open that array : I tried foreacsh and print @thescore but I only see the last score
somthing like
for(@thescore) { print "$thescore\n"; }
thanks for help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using push
by Tanalis (Curate) on Jan 24, 2003 at 15:25 UTC | |
|
Re: using push
by dragonchild (Archbishop) on Jan 24, 2003 at 15:28 UTC | |
|
Re: using push
by dempa (Friar) on Jan 24, 2003 at 15:52 UTC | |
by jumk (Initiate) on Jan 24, 2003 at 16:12 UTC | |
|
Re: using push
by Steve_p (Priest) on Jan 24, 2003 at 17:51 UTC |