CFEngine parser in perl