From 7f49411f87ec0533a261ce875967f7f9a22b8777 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 28 May 2015 15:49:11 +0200 Subject: add --devmode option --- lib/Travel/Status/DE/EFA.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Travel') diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 4789ccc..0143cb6 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -104,6 +104,7 @@ sub new { useProxFootSearch => '0', useRealtime => '1', }, + developer_mode => $opt{developer_mode}, }; bless( $self, $class ); @@ -123,7 +124,9 @@ sub new { string => $self->{xml}, ); - #say $self->{tree}->toString(1); + if ( $self->{developer_mode} ) { + say $self->{tree}->toString(1); + } $self->check_for_ambiguous(); -- cgit v1.2.3