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.
In reply to Re: Perl DBI / Variable Question
by shigetsu
in thread Perl DBI / Variable Question
by Trihedralguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |