Re: how to accept array elments using loop



lumadhu@xxxxxxxxx wrote:
Hi all,

Hello,

I am new user of this group. can you tell how can i accept
array elements using loop. for example
for($i=0;$i<5;$i++)
{
$a[$i]=<stdin>;
}

my @a = map scalar <STDIN>, 1 .. 5;



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
.



Relevant Pages

  • Re: how to execute 30 transactions at a time
    ... Perl isn't a toolbox, but a small machine shop where you can special-order ... certain sorts of tools at low cost and in short order. ...
    (comp.lang.perl.misc)
  • Re: Become more productive with Vista Speech Recognition.
    ... Perl isn't a toolbox, but a small machine shop where you can special-order ... certain sorts of tools at low cost and in short order. ...
    (comp.lang.perl.misc)
  • Re: Reg. Directory listing program
    ... Perl isn't a toolbox, but a small machine shop where you ... can special-order certain sorts of tools at low cost and ...
    (perl.beginners)
  • Re: heredoc issure
    ... Perl isn't a toolbox, but a small machine shop where you ... can special-order certain sorts of tools at low cost and ...
    (perl.beginners)
  • Re: White space split
    ... Perl isn't a toolbox, but a small machine shop where you ... can special-order certain sorts of tools at low cost and ...
    (perl.beginners)