looping issue
- From: dakin999 <akhilshri@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 00:45:29 -0700 (PDT)
Hi, I have following code:
foreach my $row (@$array_ref) {
my ( $usr, $usr_det, $pwd_val) = @$row;
#print "\tuser id :$usr\n";
#print "\tcard no :$usr_det\n";
#print "\tpasswd :$pwd_val\n";
open (FILE, "<file_name") || die "Could not open the file: $!";
while (<FILE>) {
chomp;
(my $nusr_id) = split(); #read into a variable
--
--
--
}
}
The problem is in the looping of input <FILE> that I need to read for
each $row. Basically there can be more than 1 $row values and I need
to pick a new line from <FILE> for each $row entry.
Any suggestions for doing this??
.
- Follow-Ups:
- Re: looping issue
- From: xhoster
- Re: looping issue
- From: Ben Morrow
- Re: looping issue
- From: Jürgen Exner
- Re: looping issue
- From: rthangam
- Re: looping issue
- From: Gunnar Hjalmarsson
- Re: looping issue
- Prev by Date: FAQ 9.20 How do I send mail?
- Next by Date: Re: looping issue
- Previous by thread: FAQ 9.20 How do I send mail?
- Next by thread: Re: looping issue
- Index(es):
Relevant Pages
|