Looks like a quoting issue. Take a look at how the q and qq operators handle text. What you want to do is interpolate (substitute) the value of $workspace into the string. q will quote verbatim, whereas qq will permit interpolation.
Try changing
toq{select * from workspace where name = '$workspace'}
qq{select * from workspace where name = '$workspace'}
Hope that helped,
-v
In reply to Re: Now to do simple select with Net::MySQL
by Velaki
in thread How to do simple select with Net::MySQL
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |