in reply to help need when processing xml using perl

You can easily add a test in your template to check if st.address is not empty.
[% FOREACH st IN details %] [%IF st.address%] [% st.name %] [% st.address %] ---more info--- [%END%] [%END%]

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: help need when processing xml using perl
by veerubiji (Sexton) on Nov 28, 2011 at 09:17 UTC

    Thank you very much for your solution, Its working.