Skip to content

Instantly share code, notes, and snippets.

@http-engine
Forked from yusukebe/hoge.pl
Created December 9, 2009 02:42
Show Gist options
  • Save http-engine/252216 to your computer and use it in GitHub Desktop.
Save http-engine/252216 to your computer and use it in GitHub Desktop.
my $s1 = "\x3d"; # =
print $s1 . "\n";
my $text = 'hogehogeho\x3dhogehoge';
my ($s2) = $text =~ m/(\\x[0-9a-z]{2})/;
print $s2 . "\n"; # \x3d ここで = を出したい
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment