pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Untitled
Go | 1 sec ago
Untitled
3 sec ago
Untitled
4 sec ago
7x NetFlix Premium Acco...
14 sec ago
Untitled
9 sec ago
Untitled
10 sec ago
LudHiaNa eSCorT Singh 0...
18 sec ago
How do I access form pr...
12 sec ago
Layout Width
Share Pastebin
Untitled
By: a guest | Jan 18th, 2009 | Syntax:
Perl
| Size: 0.19 KB | Hits: 26 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
This paste has a previous version,
view the difference
.
#!/usr/bin/perl
use
strict
;
use
warnings
;
my
$hex
=
shift
(
@
ARGV
)
;
$hex
=~
s/ //g
;
$hex
=~
s/://g
;
$hex
=~
s/([a-fA-F0-9]{2})/chr(hex $1)/eg
;
print
$hex
,
"
\n
"
;
create new paste
|
create new version of this paste
RAW Paste Data
#!/usr/bin/perl use strict; use warnings; my $hex = shift(@ARGV); $hex =~ s/ //g; $hex =~ s/://g; $hex =~ s/([a-fA-F0-9]{2})/chr(hex $1)/eg; print $hex, "\n";