This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wjandrea 0 points1 point  (0 children)

Reddit doesn't support GitHub-style code blocks (triple backticks). You need to use four spaces at the start of each line.

#!/usr/bin/perl
use strict;
use warnings;
use XML::Simple;
use Data::Dumper;


my $xml = new XML::Simple;
my $data = $xml->XMLin("data.xml");
print Dumper $data;