No such thing as a small change | |
PerlMonks |
Need advice (module) to parse nested IF/ELSIF..by taizica (Novice) |
on Jan 28, 2004 at 15:22 UTC ( [id://324685]=perlquestion: print w/replies, xml ) | Need Help?? |
taizica has asked for the wisdom of the Perl Monks concerning the following question:
Hello Perl Guru, I really need your advice to find an existing module which can parse a text template with IF/ELSIF. For example, in a text, we can parse the following nested IF tags. Thank you very much in advance. <%IF boys %>    You can play football for the whole day.    <%IF nice_boys %>      You don't need to get permission from your teacher.    <%ELSIF agreesive_boys%>      Please respect others    <%ELSE%>      Please talk to me first    <%ENDIF%> <%ELSIF girls%>    I suggest you to go to library <%ELSE%>    Stay here <%ENDIF>
Back to
Seekers of Perl Wisdom
|
|