in reply to Inserting Text into Files within a Directory

For the problems you're having with "open", perhaps you should ask Perl to tell you what the problem is - by including $! in your error message.

For parsing and changing XML, you should probably be using an XML parsing module rather than regexes. Sounds like XML::Treebuilder would be best for this job.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

  • Comment on Re: Inserting Text into Files within a Directory