in reply to Images built on the fly do not display
Scanning over your snippet, the other thing that jumped out is that you're using the single-argument form of exec(), which has a hidden performance penalty. (See perlfunc, and read carefully.)
But do you really need a fork()/exec() here? Wouldn't using system() give you the same effect with less hassle? Note, though, that system() has the same hidden overhead as exec() when called with a single argument.
|
|---|