In perl, for unix, the header of a script has the path to perl.
For example:    

        #!/usr/local/bin/perl

In a perl script for NT, one might invoke perl by doing:  

        #!C:\perl\perl.exe

If I wish to write a single perl script that will work on both unix and NT
without modification, how can you do it?

For example is this acceptable:

        #!/usr/local/bin/perl
        #!C:\perl\perl.exe

Or is there some other way to do this? I plan to have the scripts run in an
automated fashion and having a single set will make deployment easier.


Thanks!!

Joe



***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation, 
offer or agreement or any information about any transaction, customer 
account or account activity contained in this communication.
***********************************************************************

Reply via email to