I am new to active perl so please forgive any ignorance in my post!

I need to write portable code that runs under both linux and windows xp (using apache servers). I have installed active perl on my windows machine and everthing was going swimmingly!

However, I have some cgi scripts which call elements of ImageMagick using system "ImageMagic cmd" On linux, this runs fine, but on Windows XP it cannot find the ImageMagick path. I need to set some sort of path variable I guess, but how?

If I bring up a DOS box, ImageMagick is in my path and I can runs all the ImageMagick commands from the dos prompt, yet for the subshells spawned by the "system" command, I get a different path - how do I set the path which is used by the subshell?

Hope this makes sense - any input appreciated

Thanks