#!/bin/perl -w use strict; use XML::Simple; # depends on XML::Parser use Data::Denter; # just to check what's read in by my $data= XMLin( \*DATA); # read the data, you would use "./$file" print Denter( $data), "\n"; # just checking __DATA__ Joshua Kruckkrujosjonny5 John Doejdoejane #### % user => % John Doe => % password => jane username => jdoe Joshua Kruck => % password => jonny5 username => krujos