![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Transformationby talexb (Canon) |
on Jan 28, 2002 at 19:33 UTC ( #142068=note: print w/replies, xml ) | Need Help?? |
As a matter of code cleanliness, it's important to add or die "Some message: $!" after your open statements. This will save the sanity of you and your users.
You could also use heredocs when writing to both the NEW and MAKE file handles -- this would make the code easier to read, and would also mean you don't have to wrry about escaping all of the various magic characters. Try it -- you'd be amazed at how much cleaner the code will look. Easier to maintain, too. --t. alex "Of course, you realize that this means war." -- Bugs Bunny.
In Section
Code Catacombs
|
|