[2014-02-14 14:30:51] Started at Fri Feb 14 14:30:51 2014 [2014-02-14 14:30:51] == customer email script == Hosting DB: [DBI connect dbi:mysql:database=DATABASE;hostname=hostname, user ashley.jordan] Hosting DB: [connect ok from pid 2997] Hosting DB: SELECT email FROM database.table WHERE field='1598'; Can't call method "fetchrow_hashref" on an undefined value at /usr/share/perl5/modulename/DB.pm line 877, line 1 (#1) (F) You used the syntax of a method call, but the slot filled by the object reference or package name contains an undefined value. Something like this will reproduce the error: $BADREF = undef; process $BADREF 1,2,3; $BADREF->process(1,2,3); Uncaught exception from user code: Can't call method "fetchrow_hashref" on an undefined value at /usr/share/perl5/modulename/DB.pm line 877, line 1. at /usr/share/perl5/modulename/DB.pm line 877 modulename::DB::fetch_assoc('modulename::DB::Hosting=HASH(0x30cdb68)', undef) called at ./scriptnamet.pl line 45