On Dec 28, 2007 7:42 PM, <[EMAIL PROTECTED]> wrote: > Hi all, > 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>; > } >
use strict; my @arr; while(<>) { chomp; push @arr,$_; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/