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 of
while(@values = $sth->fetchrow_array) {
print "$values[8]\n";
}
the 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 perl
my $insert = "insert into dbtable (vol) values ('$values[8]')";
the insert statement will now fail because it will look like
insert into dbtable (vol) valuse ('/vol/enycmmcfl01b_ssd2_home_1b_a/CB
+irbigl$'s')
And well that wont work