ForceArray=1 ensures $servers->{server} is an arrayref even if there is only one server block in the file.
See OPTIONS in XML::SimpleIn reply to Re^5: need help with for loop within an xml
by poj
in thread need help with for loop within an xml
by deep27ak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |