RE: Cannot bind a reference

2011-10-06 Thread Jeffrey Joh
> To: beginners@perl.org > CC: johjeff...@hotmail.com > Subject: Re: Cannot bind a reference > > On 01/10/2011 23:16, Jeffrey Joh wrote: > > > > I am trying to run an insert statement with DBI. > > > > $dbh->do(q{insert into zillow_table values > > (?,?,?,

Cannot bind a reference

2011-10-01 Thread Jeffrey Joh
Hello, I am trying to run an insert statement with DBI. $dbh->do(q{insert into zillow_table values (?,?,?,?,?,?,?,?)},undef,($homeid,$code,$text,$pid,$street,$city,$state,$zlastupdated)); However, I get "Cannot bind a reference" error. Why does that occur? $dbh is part of a foreach l

Can't call method error

2011-08-12 Thread Jeffrey Joh
I'd like to include code so that if I get the following error, the script will just ignore it and keep running: "Can't call method "attr" on an undefined value at abcde.pl line 2" Does anyone know of such a code? Jeff -- To unsubscribe, e-mail: be

RE: Parse HTML

2011-07-26 Thread Jeffrey Joh
those plans that do not have a proper date_constructed such as "last summer".How could I do that? Jeff > Date: Tue, 26 Jul 2011 16:48:41 +0100 > From: rob.di...@gmx.com > To: beginners@perl.org > CC: johjeff...@hotmail.com > Subject: Re: Parse HTML > > On 25/07/2011 21:1

RE: Parse HTML

2011-07-26 Thread Jeffrey Joh
mx.com > To: beginners@perl.org > CC: johjeff...@hotmail.com > Subject: Re: Parse HTML > > On 25/07/2011 21:17, Jeffrey Joh wrote: > > > > Hello, I'm trying to parse HTML files. I want to extract values from > > tables (1) and from text fields (2). (1) > sr

Parse HTML

2011-07-25 Thread Jeffrey Joh
Hello, I'm trying to parse HTML files. I want to extract values from tables (1) and from text fields (2). (1) Floor plan: Ranch #1 (2) I would want to retrieve the floor plan (Ranch #1) and the date constructed (04/01/2004) from each HTML file (along with many other text b

XML::Simple keyattr

2011-06-08 Thread Jeffrey Joh
I have an issue with XML::simple keyattr. I have two XML files: calif.xml123456CaliforniaSan Francisco123457CaliforniaLos Angeles texas.xml123458TexasHoustonthis file only has one address record. When I use XML::Simple with the condition keyattr => {result -> address -> 'homeid'} then th