hi, which of the two is better? thx. $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; or $value =~ s/%(..)/chr(hex($1))/ge;
in both cases if the input string has \ in it, it is being converted to \\ i read... chr = function is used to convert ASCII or Unicode values into their equivalent characters... pack = here to convert hex to character ("C")...