Re: Re[2]: [perl-win32-gui] Questin from a beginner

2000-04-26 Thread Reini Urban

well,
it depends on the application loader, not on the operating system.

a unix shell even if compiled for NT, (e.g. cygwin bash, mingw bash, msvc
tcsh, ...)
does look at the she-bang, also my apache for windows.
at least cmd.exe, 4nt.exe or command.com ignore the "she-bang" (#!) line.

some perl win32 startup magic is applied to get at the switches as aldo
said.
I also applied some 4nt magic to fire up the correct perl exe version.

set .pl=/usr/local/bin/perl5.005.exe
set .pl4=/usr/local/bin/perl5.004.exe
set .gpl=/usr/local/bin/guiperl.exe

"/" defaults to %SystemDrive% (which is E: in my case)

very similar to nt: ftype and assoc

but I had to version the various perl dll's as well. perl5.6 thanksfully
versions its dll now by default.
not so far as I do, but at least to some extent.
by "versioning" I mean rename the dll to something like perl5.00503-md.dll
(suffixes for multi-debug-object-threaded, ...).
this required some patches to the makefile, see my patches to the
perl-win32-porters list at lyris. (or p5p?)
this allows multiple versions through various small perl.exe versions
loading different shared libs.
Getting at the correct dll without needing to add the path to %PATH% was the
hard point.
switching various %PATH% settings was not to my taste.

BTW: the whole discussion should go to the lyris win32-users list and has
nothing to do with Win32::GUI

>Mike Kangas wrote:
>> on a Windows computer you do not need this. Linux yes. For
>> linux it is the path for perl, in windows it is just another
>> commented line of code.

Aldo wrote:
>not quite true.
>the Windows perl does not care about path, but it does care
>about switches. so if you put:
>
>  #!/usr/bin/perl -w
>
>the script will run even if your PC doesn't know nothing
>about /usr/bin, but it will run with warnings on ;-)






Re: [perl-win32-gui] Questin from a beginner

2000-04-26 Thread Mike Kangas

I did not know that. Thanks.

Mike


Aldo Calpini wrote:

> Mike Kangas wrote:
> > on a Windows computer you do not need this. Linux yes. For
> > linux it is the path for perl, in windows it is just another
> > commented line of code.
>
> not quite true.
> the Windows perl does not care about path, but it does care
> about switches. so if you put:
>
>   #!/usr/bin/perl -w
>
> the script will run even if your PC doesn't know nothing
> about /usr/bin, but it will run with warnings on ;-)
>
> cheers,
> Aldo





Re[2]: [perl-win32-gui] Questin from a beginner

2000-04-26 Thread Aldo Calpini

Mike Kangas wrote:
> on a Windows computer you do not need this. Linux yes. For
> linux it is the path for perl, in windows it is just another
> commented line of code.

not quite true.
the Windows perl does not care about path, but it does care
about switches. so if you put:

  #!/usr/bin/perl -w

the script will run even if your PC doesn't know nothing
about /usr/bin, but it will run with warnings on ;-)

cheers,
Aldo







Re: [perl-win32-gui] Questin from a beginner

2000-04-26 Thread Naika Malveaux

Thank you, yes this is for a UNix server. I crawl back to my books now.

-Naika


>From: "Mike Kangas" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [perl-win32-gui] Questin from a beginner
>Date: Tue, 25 Apr 2000 17:36:41 -0500
>
>on a Windows computer you do not need this. Linux yes. For linux it is the 
>path
>for perl, in windows it is just another commented line of code.
>
>hope this helps.
>Mike
>
>Naika Malveaux wrote:
>
> > This might be the most embaressing question on the list yet, but I'm a
> > little confused.
> >
> > In perl on the she-bang line is the # in the #!/usr/bin/perl line 
>suppose to
> > remain there to active the script or are you suppose to remove the # ?
> >
> > Sorry the books don't quite fully explain this so I have to rely on the
> > gifted people on this list.
> >
> > -Naika
> > Realm Gothica
> > http://www.triocollective.com/gothica.htm
> > "...open your mind to something new..."
> >
> > 
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com





Re: [perl-win32-gui] Questin from a beginner

2000-04-25 Thread Mike Kangas

on a Windows computer you do not need this. Linux yes. For linux it is the path
for perl, in windows it is just another commented line of code.

hope this helps.
Mike

Naika Malveaux wrote:

> This might be the most embaressing question on the list yet, but I'm a
> little confused.
>
> In perl on the she-bang line is the # in the #!/usr/bin/perl line suppose to
> remain there to active the script or are you suppose to remove the # ?
>
> Sorry the books don't quite fully explain this so I have to rely on the
> gifted people on this list.
>
> -Naika
> Realm Gothica
> http://www.triocollective.com/gothica.htm
> "...open your mind to something new..."
>
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com





[perl-win32-gui] Questin from a beginner

2000-04-25 Thread Naika Malveaux

This might be the most embaressing question on the list yet, but I'm a 
little confused.

In perl on the she-bang line is the # in the #!/usr/bin/perl line suppose to 
remain there to active the script or are you suppose to remove the # ?

Sorry the books don't quite fully explain this so I have to rely on the 
gifted people on this list.

-Naika
Realm Gothica
http://www.triocollective.com/gothica.htm
"...open your mind to something new..."



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com