RE: Generalized uname

2002-05-13 Thread Timothy Johnson
he exe. You may not see perl.exe in there, but the interpreter is still there. -Original Message- From: Mayank Ahuja To: Timothy Johnson Cc: 'Mayank Ahuja '; 'Perl ' Sent: 5/13/02 12:09 AM Subject: Re: Generalized uname ooopss!! i was wrong ... $^O worked Ac

Re: Generalized uname

2002-05-13 Thread drieux
On Monday, May 13, 2002, at 12:09 , Mayank Ahuja wrote: [..] > $^O The name of the operating system under which this > copy of Perl was built, as determined during the > configuration process. The value is identical to > $Config{'osname'}. [..] so why

Re: Generalized uname

2002-05-13 Thread Felix Geerinckx
on Mon, 13 May 2002 07:21:31 GMT, [EMAIL PROTECTED] (Jonathan e. paton) wrote: > Thus, your original program is compiled into Perl bytecode, > and is then run through a full interpreter - you have all the > power of Perl. However, this means perl2exe is a poor way to > increase speed (i

Re: Generalized uname

2002-05-13 Thread Jonathan E. Paton
> ooopss!! i was wrong ... $^O worked > > According to "perldoc perlvar" : > > $^O The name of the operating system under which this > copy of Perl was built, as determined during the > configuration process. The value is identical to > $Config{'os

Re: Generalized uname

2002-05-12 Thread Mayank Ahuja
ooopss!! i was wrong ... $^O worked According to "perldoc perlvar" : $^O The name of the operating system under which this copy of Perl was built, as determined during the configuration process. The value is identical to $Config{'osname'}. I thou

RE: Generalized uname

2002-05-12 Thread Felix Geerinckx
on Mon, 13 May 2002 06:24:46 GMT, [EMAIL PROTECTED] (Timothy Johnson) wrote: > Are you SURE you can't use $^O? ActiveState's PerlApp, which is part of it's Perl Dev Kit, has no problems whatsoever with $^O. -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: Generalized uname

2002-05-12 Thread Jonathan E. Paton
> I've never used perl2exe, I don't know much about it, but are > you 100% sure the interpreter isn't available? That'd make > every eval{} invalid... and certainly a lot of code uses it. > > Try compiling code with: > > eval { print $^O } > > and see what happens. Opps, change {} to "", ev

RE: Generalized uname

2002-05-12 Thread Timothy Johnson
Are you SURE you can't use $^O? -Original Message- From: Mayank Ahuja To: Perl Sent: 5/12/02 11:09 PM Subject: Generalized uname Hi Group! Is there a module, using which i can determine the Operating System on which my perl script is running? I cannot use $^O as the my script will be

Re: Generalized uname

2002-05-12 Thread Jonathan E. Paton
> Is there a module, using which I can determine the Operating > System on which my perl script is running? I cannot use $^O > as the my script will be an executable (using perl2exe) > and therfore the interpreter won't be available during runtime I've never used perl2exe, I don't know much abou