Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Transformation

by talexb (Canon)
on Jan 28, 2002 at 19:33 UTC ( #142068=note: print w/replies, xml ) Need Help??

in reply to Transformation

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://142068]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2021-04-23 05:01 GMT
Find Nodes?
    Voting Booth?

    No recent polls found