From: Robbie Staufer <[EMAIL PROTECTED]> > I'm writing a DBI script that will read data from a text file and > insert it into a database. > > When I come to the point of the 'open' statement: > > open(CODEINFO, $data_file) || die "Unable to open $data_file:"; > > I get the following error messages: > > Bareword found where operator expected near "open(CODEINFO, > '$data_file') || die "Unable" > > and > > syntax error near "open(CODEINFO, '$data_file') || die "Unable to > " > Can't find string terminator '"' anywhere before EOF.
Most probably you are missing a doublequote somewhere ABOVE that statement. Therefore Perl tries to treat the code as a string constant and the string constant as a code. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]