in reply to Re: Need help escaping literal string
in thread Need help escaping literal string
Thank you for the reply
How exactly would I do it? Lets say I have a value ofthe return value of that is : /vol/enycmmcfl01b_ssd2_home_1b_a/CBirbigl$'s as you can see if I try and take that value and insert in to an insert statement to execute that through perlwhile(@values = $sth->fetchrow_array) { print "$values[8]\n"; }
the insert statement will now fail because it will look likemy $insert = "insert into dbtable (vol) values ('$values[8]')";
And well that wont workinsert into dbtable (vol) valuse ('/vol/enycmmcfl01b_ssd2_home_1b_a/CB +irbigl$'s')
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need help escaping literal string
by roboticus (Chancellor) on Nov 15, 2012 at 02:34 UTC | |
by mrras25 (Acolyte) on Nov 15, 2012 at 04:07 UTC | |
|
Re^3: Need help escaping literal string
by muba (Priest) on Nov 15, 2012 at 02:20 UTC |