Re: looping issue
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Mon, 30 Jun 2008 16:47:57 +0100
Quoth dakin999 <akhilshri@xxxxxxxxx>:
Hi, I have following code:
use warnings;
use strict;
open my $FILE, '<', 'file_name'
or die "can't open 'file_name': $!";
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";
my $line = <$FILE> or last;
chomp $line;
my ($nusr_id) = split;
#...
}
Ben
--
I have two words that are going to make all your troubles go away.
"Miniature". "Golf".
[ben@xxxxxxxxxxxx]
.
- References:
- looping issue
- From: dakin999
- looping issue
- Prev by Date: Re: editing smb.conf (INI files)
- Next by Date: Re: Need help with a question.
- Previous by thread: Re: looping issue
- Next by thread: Re: looping issue
- Index(es):
Relevant Pages
|