Re: String Manipulation On 6/27/07, Dharshana Eswaran  wrote:

> I am restricted from using modules and i am unable to come up
> with a regex or regexes to do this job.

So, the Pointy-Haired Boss won't let you use any module that didn't
come with Perl?

Even if you can't use Parse::RecDescent in your final program, you can
still use it to get the job done. If something resembling Chas Owens's
solution works, you can turn a grammar into a module by the means
described under "Precompiling parsers". Then you can pull the Perl
code out of that module, and the PHB never has to know you didn't
write it yourself.

    http://search.cpan.org/dist/Parse-RecDescent/lib/Parse/RecDescent.pod#Precompiling_parsers

Cheers!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


