#!/usr/bin/perl -w # $Id: bench_twig_nothing,v 1.2 2003/09/19 18:52:26 mrodrigu Exp $ use strict; use simple_benchmark; # to get memory size use XML::Twig; use Getopt::Long; my( $in_file, $print); GetOptions( 'print!' => \$print, 'in_file=s' =>\$in_file); $in_file ||= 'test.xml'; $print= 1 unless( defined $print); my $t= XML::Twig->new()->parsefile( $in_file); $t->print if( $print);