tech notes of yet another programmer

Friday, May 6, 2016

asciihex to hex in perl

Found great script on stackoverflow:

my $str = <>;
$str =~ s/(..)/chr(hex($1))/eg;
print($str);



Posted by HostageBrain at 5:26 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: memo, perl

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Labels

  • windows
  • building
  • visualstudio
  • memo
  • openssl
  • c++
  • perl
  • zlib
  • automation
  • blowfish
  • cfb
  • cmd
  • libxml++
  • libzip
  • linux
  • mysql
  • proxy-libintl
  • python
  • redis
  • redis3m
  • yara
  • 7z
  • autostart
  • boost
  • forensic
  • glib
  • glibmm
  • gnuwin32
  • iconv
  • ida
  • javascript
  • libffi
  • libiconv
  • libxml2
  • mc
  • mcrypt
  • mingw
  • msys
  • mui
  • nginx
  • openpgp
  • pcre
  • pdfium
  • reversing
  • sfx
  • sigc++
  • ssh
  • telnet
  • tinyxpath
  • tricks
  • uac
  • v8
  • vbscript
  • winapi

About Me

HostageBrain
View my complete profile

Blog Archive

  • ►  2017 (2)
    • ►  January (2)
  • ▼  2016 (14)
    • ►  November (1)
    • ►  September (1)
    • ►  August (1)
    • ►  June (2)
    • ▼  May (4)
      • the simplest nginx cfg for sharing files
      • errno values link
      • how to launch debugger when specific process start
      • asciihex to hex in perl
    • ►  March (5)
  • ►  2015 (26)
    • ►  November (3)
    • ►  August (1)
    • ►  July (4)
    • ►  June (10)
    • ►  April (8)
Simple theme. Powered by Blogger.