#! perl -w use warnings; use strict; use XML::XSH2; open "C:\\location\\test.xml" ; for /httpsRoutes/httpsRoute echo @hostname (key) @tier | cat > out.txt #### C:\Strawberry\perl\bin>perl "C:\location\xmlRead_3.pl Array found where operator expected at C:\location\xmlRead_3.pl line 8, at end of line (Missing operator before ?) Array found where operator expected at C:\location\xmlRead_3.pl line 8, at end of line (Missing operator before ?) Unknown regexp modifier "/h" at C:\location\xmlRead_3.pl line 7, at end of line Unknown regexp modifier "/t" at C:\location\xmlRead_3.pl line 7, at end of line Unknown regexp modifier "/t" at C:\location\xmlRead_3.pl line 7, at end of line Unknown regexp modifier "/R" at C:\location\xmlRead_3.pl line 7, at end of line Unknown regexp modifier "/t" at C:\location\xmlRead_3.pl line 7, at end of line Unknown regexp modifier "/e" at C:\location\xmlRead_3.pl line 7, at end of line syntax error at C:\location\xmlRead_3.pl line 7, near "for /httpsRoutes/httpsRoute" Global symbol "@hostname" requires explicit package name at C:\location\xmlRead_3.pl line 8. Global symbol "@tier" requires explicit package name at C:\location\xmlRead_3.pl line 8. Execution of C:\location\xmlRead_3.pl aborted due to compilation errors.