Angharad has asked for the wisdom of the Perl Monks concerning the following question:
I'm sure that I've initialised the relevant variable - its at the top of the script asCan't call method "bind_param" on an undefined value at nameofscript.p +l
and then later is assigned a proper value. I even print out the variable to check it has a value in it before invoking the SQL query that uses the variable.my $variable = " ";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get undefined error when trying to invoke SQL query in perl script
by derby (Abbot) on Oct 04, 2006 at 14:04 UTC | |
|
Re: get undefined error when trying to invoke SQL query in perl script
by shmem (Chancellor) on Oct 04, 2006 at 14:05 UTC |