[Israel.pm] Perl in multiple locations
Gaal Yahas
gaal at forum2.org
Tue Apr 29 16:07:24 EEST 2008
Yes, -w will not work on a non-perl shebang. But you can set $^W = 1
(see perlvar).
Note that you're using a very old version of Perl that's no longer
supported by CPAN tools. Consider updating to at least 5.8.4. On newer
Perls, you can can say "use warnings;".
2008/4/29 Alexander Gurevich <gurevich at checkpoint.com>:
> Thank you , it is working . But what if I want to use warnings and my perl
> is 5_003. I tried to add -w to shebang line , but it is not working this
> way.
>
> Alex.
>
>
> -----Original Message-----
> From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On Behalf
>
> Of Shushu Inbar שושו ענבר
> Sent: Tuesday, April 29, 2008 10:31 AM
> To: Perl in Israel
> Subject: Re: [Israel.pm] Perl in multiple locations
>
>
>
> Hi,
> You can try to use /usr/bin/env (google it...), but I am not sure the
> IPSO has /usr/bin/env, so it is kind of "the chicken and the egg"
> problem.
> On the other hand, if I recall correctly, unless anyone changed it
> since I did it, perl on IPSO is actually an alias to something else,
> so it is kind of a different problem...
>
> Ciao,
> Shushu
>
> On Tue, Apr 29, 2008 at 12:22 PM, Alexander Gurevich
> <gurevich at checkpoint.com> wrote:
> > Hi
> >
> > I need to start my perl script on different platforms and location of perl
> > binary is different on them (Linux , Nokia IPSO).
> > Does any one know how to define different paths for perl in the shebang
> > line?
> >
> > Alex.
> >
> > _______________________________________________
> > Perl mailing list
> > Perl at perl.org.il
> > http://perl.org.il/mailman/listinfo/perl
> >
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>
> Scanned by Check Point Total Security Gateway.
>
>
>
>
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>
--
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
More information about the Perl
mailing list