$id = 1 open(MYFILE,"/var/tmp/mylist.dat") or die "Cant open mylist.dat" while (<MYFILE>) { chomp; split/,/; die "Request Id $id already present in file\n" if $_[0] eq $id; } close MYFILE;
In reply to Re^2: Access elements of $_
by Anonymous Monk
in thread Access elements of $_
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |