2009/12/16 Avani <avani.v.puj...@gmail.com>: > Hi all, > > I am very new to perl. I have to parse template in perl. > > do anybody have any reference code to do it? > > currently I am using regular expression. Right now, i m only able to > replace variables. HOw to do it for "for loop" and "if conditions" ?
You may have to give more details, because I'm not entirely sure what you want. What does "parse template" mean? What is your input? What is your output? Can you give real examples of what you would like your program to do? If you have a file with a regular structure which you would like to parse according to some kind of template, take a look at Template::Extract in CPAN. Phil -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/