in reply to How to do simple select with Net::MySQL
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Now to do simple select with Net::MySQL
by Anonymous Monk on Sep 15, 2004 at 05:53 UTC | |
by hmerrill (Friar) on Sep 15, 2004 at 11:44 UTC |