----- Original Message ----- From: "Mahdi A. Sbeih" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 23, 2002 12:20 PM Subject: [Perl-unix-users] the #! construct to start perl on your system
> Hi there, > > > I am installing now Perl 5 on my Solaris box, > > I am trying to understand this question that I am > being asked by Configure script: > > I can use the #! construct to start Perl on your system. This will > make startup of Perl scripts faster, but may cause problems if you > want to share those scripts and Perl is not in a standard place > (/ids/source_3rd/perl/build/Solaris2.6/bin/perl) on all your platforms. The > alternative is to force > a shell by starting the script with a single ':' character. > > I have 2 questions: > What does using the single ':' char means.?? > Is there away to let the Perl script use whatever Perl specified in the > PATH?? Yup. Put the directory where perl resides in your PATH, and use #!perl -w as your perl script header. It will use the first instance of perl in your PATH, so if you have multiple versions installed, make sure that the one you want to use is first (before all other perls) in your path. As far as ':', it depends on the shell, and where it is applied. It can be used as a separator in multiple commands on a single line in 'sh'. I can also be used as a separator in a PATH list. Other shells may use it for other things. It is used in 'csh' as an entity terminator in a switch clause, for example. ego Edward G. Orton, GWN Consultants Inc. Phone: 613-764-3186, Fax: 613-764-1721 email: [EMAIL PROTECTED] _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs