in reply to Re^2: Need help escaping literal string
in thread Need help escaping literal string
That's why davido mentioned placeholders. It's something like:
# Prepare a statement...
my $sth = $dbh->prepare("insert into dbtable (vol) values (?)");
my $funky_string = "/vol/enycmmcfl01b_ssd2_home_1b_a/CBirbigl$'s";
This way, you don't have to worry about the odd characters inside your statement. Building your own statements like you were trying to do just leads to the difficulties you're experiencing. That's why placeholders were invented.
When your only tool is a hammer, all problems look like your thumb.