you can create same directory structure in both windows and linux and install perl there. In linux create the directory with the drive name so it would find out. Update: In case of windows just create a directory with /usr/bin/ so it would resolve the problem.
Thanks
SasiKumar
Comment on Re: shebang line for Perl scripts under Apache/Windows
Yes erix pointed to one of his replies in an earlier tread which describes such a solution, in the Chatterbox. I guess it works... though it's an ugly hack, and I'm not sure what drive the directory has to be on, in order for it to work reliably. Apache's? The website's?
It works fine and makes switching machines really simple, at least for me. The drive perl has to be on is which ever drive apache's CWD is on. So if apache's cwd is "C:/foo/bar/", "/usr/bin" will refer to "C:/usr/bin". But if apache starts under D: or some such, it needs to be there. Also note, last I checked, you don't need the entire perl install in this new directory, you can simply add a shortcut named perl, and that should work.