Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Perfecting some more!

by eXile (Priest)
on Apr 30, 2005 at 05:48 UTC ( #452807=note: print w/replies, xml ) Need Help??

in reply to Perfecting some more!

A few tips:

Don't use FatalsToBrowser in production code, it's a useful tool for testing, it's a potential source for hackers to gather information of your server.

Separate perl-code and html. You can use templating solutions for that like Template (there are more templating solutions, look around on permonks,cpan).

For separating into subroutines, there are no strict rules, but try to split it up in places you think are logical. For instance a CGI script with several states could be split up in one subroutine per state. Experiment with it, see if you can find pieces in your code that look reusable, so if you make them into a subroutine you could use this subroutine later on in another script.

Replies are listed 'Best First'.
Re^2: Perfecting some more!
by Nik on Apr 30, 2005 at 18:10 UTC
    Thanks! Any other suggestiosn on the script?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2019-05-23 22:47 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (147 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!