in reply to parsing a file
# untested my @users = ( $file =~ /__BEGIN__\n(.*?)\n__END__/gs ); [download]
But if I may make a reccomendation, for dealing with this kind of data, I find YAML to be extremely useful and eady.