Re: read from a file

2002-10-27 Thread K Pfeiffer
Vo, Synh writes: > I changed the code and still got errors. [...] > print NEW "grant select , update, delete, insert on " $item " > user;" ; [...] > syntax error at grant.pl line 13, near ""grant select , update, delete, > insert on " $item " > String found where operator expected at g

RE: read from a file

2002-10-25 Thread Vo, Synh
James, Thanks for the help. The qq worked nicely. Synh -Original Message- From: Kipp, James [mailto:James.Kipp@;mbna.com] Sent: Friday, October 25, 2002 2:29 PM To: Vo, Synh; [EMAIL PROTECTED] Subject: RE: read from a file you need to escape your quotes in the sql statment, or use

RE: read from a file

2002-10-25 Thread Kipp, James
25, 2002 1:46 PM > To: [EMAIL PROTECTED] > Subject: RE: read from a file > > > I changed the code and still got errors. > > > > use strict; > > > open(FILE, "< obj.list") or die "can't open file : $! " ; > open(NEW, &quo

RE: read from a file

2002-10-25 Thread Vo, Synh
line 24, at end of line syntax error at grant.pl line 24, at EOF Execution of grant.pl aborted due to compilation errors. -Original Message- From: Kipp, James [mailto:James.Kipp@;mbna.com] Sent: Friday, October 25, 2002 12:20 PM To: Vo, Synh; [EMAIL PROTECTED] Subject: RE: read from a file >

Re: read from a file

2002-10-25 Thread Todd Wade
"Synh Vo" <[EMAIL PROTECTED]> wrote in message news:1779CE9992706F45BDC9575124A5AAE51BFC41@;a0001-xpo0114-s.hodc.ad.allstate .com... > Hi, > > I'm trying to read from a file and based on the some of the matched info, > print out certain statements. This is probably very easy for the folks here. >

RE: read from a file

2002-10-25 Thread Kipp, James
> > I'm trying to read from a file and based on the some of the > matched info, > print out certain statements. This is probably very easy for > > open(FILE, "< obj.list") or die "can't open file : $! " ; > open(NEW, "> new.list"); > > chomp(@lines = ); > > foreach my $item (@lines) { >