#! perl -w use warnings; use strict; use XML::XSH2; open "C:\\location\\test.xml" ; for /httpsRoutes/httpsRoute echo @hostname (key) @tier | cat > out.txt
Errors I'm getting:
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 en +d of line Unknown regexp modifier "/t" at C:\location\xmlRead_3.pl line 7, at en +d of line Unknown regexp modifier "/t" at C:\location\xmlRead_3.pl line 7, at en +d of line Unknown regexp modifier "/R" at C:\location\xmlRead_3.pl line 7, at en +d of line Unknown regexp modifier "/t" at C:\location\xmlRead_3.pl line 7, at en +d of line Unknown regexp modifier "/e" at C:\location\xmlRead_3.pl line 7, at en +d of line syntax error at C:\location\xmlRead_3.pl line 7, near "for /httpsRoute +s/httpsRoute" Global symbol "@hostname" requires explicit package name at C:\locatio +n\xmlRead_3.pl line 8. Global symbol "@tier" requires explicit package name at C:\location\xm +lRead_3.pl line 8. Execution of C:\location\xmlRead_3.pl aborted due to compilation error +s.
In reply to Re^4: extracting attribute values which might have multiple occurences from xml file
by perlDevsWorld
in thread extracting attribute values which might have multiple occurences from xml file
by perlDevsWorld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |