Skip to content

Instantly share code, notes, and snippets.

@syncsynchalt
Created April 10, 2012 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syncsynchalt/2348045 to your computer and use it in GitHub Desktop.
Save syncsynchalt/2348045 to your computer and use it in GitHub Desktop.
dang it perl
$ cat /tmp/foo.pl
#!/usr/bin/perl -w
use strict;
use XML::Simple;
use Data::Dumper;
print Dumper(XMLin('<xml attrib="foo&amp;bar"/>'));
$ perl5.12 /tmp/foo.pl
$VAR1 = {
'attrib' => 'foo&bar'
};
$ perl5.8 /tmp/foo.pl
$VAR1 = {
'attrib' => 'foo&amp;bar'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment