in reply to converting hex to char

print pack "H*", "6162";
But if your question is about converting URIs, please ask that instead. You'll want to become familiar with URI.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: converting hex to char
by semio (Friar) on Aug 19, 2002 at 03:14 UTC
    thanks DamnDirtyApe, adrianh, sauoq and merlyn for the great advice. To give you an idea as for the basis of my question, I'm interesting in building a small tool that will convert hex content in a Snort IDS signature to a char value and, conversely, take a known attack string and quickly convert it to hex for signature creation. I'll probably use something like
    print unpack "H*", "abc";
    for the char to hex conversion.

    cheers! -semio