
Which characters need escaping list?
Quote:
> Does anyone know where I could get a list of which characters need to be
> escaped out of strings when using perl. I searched on google with quite few
> combinations of words but came up empty. I'm still looking but does anyone
> have any ideas?
either use quotemeta(), as anno said, or:
if you don't know the blacklist (which characters to escape (or even
forbid)) then use a whitelist and escape/forbid everything else.
depends on what the data is for, of course.
hth, tina
--
http://www.tinita.de \ enter__| |__the___ _ _ ___
http://Movies.tinita.de/ \ / _` / _ \/ _ \ '_(_-< of
http://PerlQuotes.tinita.de/ \ \ _,_\ __/\ __/_| /__/ perception