Skip to content

Instantly share code, notes, and snippets.

@earino
Created September 5, 2012 04:21
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 earino/3630374 to your computer and use it in GitHub Desktop.
Save earino/3630374 to your computer and use it in GitHub Desktop.
simple XML input
#!/usr/bin/env perl
use warnings;
use strict;
use FindBin;
use File::Slurp;
use XML::Simple;
use Time::HiRes;
my $infile = "$FindBin::Bin/../data/standard.xml";
my $start_time = Time::HiRes::time;
my $data_in = XMLin($infile);
print STDERR "Parse: ".(Time::HiRes::time - $start_time)."\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment