in reply to Perl DBI / Variable Question
While not inevitably necessary, using '%${mainsearch}%' instead of '%$mainsearch%' will make your code more readable in this special context. Otherwise, it looks at first glance as if $mainsearch was a hash reference being dereferenced.
Otherwise, what geekphilosopher said.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl DBI / Variable Question
by Trihedralguy (Pilgrim) on Jan 25, 2007 at 20:29 UTC |