in reply to How do I remove trailing zeros from a hex string?

ummm... probably s/\x00+$//; would suit your needs... not sure though, since it is hex data that will take 1 or more nulls off the end($) of a string
                - Ant