Re: How to find out the Perl build, not the version?

2002-08-28 Thread $Bill Luebkert

Steven Manross wrote:
> Maybe someone can improve on this...  (this was the only way I could figure
> out how to get it to work within one of my scripts.)
> 
> $activestate_perl_ver =
> "v".ord(substr($^V,0,1)).".".ord(substr($^V,1,1)).".".ord(substr($^V,2,1));
> 
> print "$activestate_perl_ver\n";

printf "Perl version v%vd\n", $^V;
print "Perl version ", join ('.', unpack "C3", $^V), "\n";

Again, that's not the build, but the version.  What was asked for was a
simple way to get the binary build:

print "Perl Build: ", Win32::BuildNumber(), "\n";

-- 
   ,-/-  __  _  _ $Bill Luebkert   ICQ=162126130
  (_/   /  )// //   DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //  http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_http://www.todbe.com/

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: How to find out the Perl build, not the version?

2002-08-28 Thread Steven Manross

Maybe someone can improve on this...  (this was the only way I could figure
out how to get it to work within one of my scripts.)

$activestate_perl_ver =
"v".ord(substr($^V,0,1)).".".ord(substr($^V,1,1)).".".ord(substr($^V,2,1));

print "$activestate_perl_ver\n";

-Original Message-
From: Carl Jolley [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 28, 2002 8:28 PM
To: Stovall, Adrian M.
Cc: [EMAIL PROTECTED]
Subject: RE: How to find out the Perl build, not the version?


On Wed, 28 Aug 2002, Stovall, Adrian M. wrote:

> Do "perl -V", instead of "perl -v" (capitalize the "v").  The first 
> line should read something like:
>
> "Summary of my perl5 (revision 5 version 6 subversion 1) 
> configuration:"
>
>
> Grab that line and do some massaging...

Or instead of doing perl -V, do a use Config; and directly retreive the
values of the revision, version and  subversion from the Config.pm file.

 [EMAIL PROTECTED] 
 All opinions are my own and not necessarily those of my employer 

___
Perl-Win32-Users mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: How to find out the Perl build, not the version?

2002-08-28 Thread Smith, Barry


Both give a build number. I'm just trying to see if there is a more elegate way of 
finding this information out if you are in a perl script.

Any other suggestions?

-Original Message-
From: Stovall, Adrian M. [mailto:[EMAIL PROTECTED]] 
Sent: 28 August 2002 14:28
To: [EMAIL PROTECTED]
Subject: RE: How to find out the Perl build, not the version?


Do "perl -V", instead of "perl -v" (capitalize the "v").  The first line should read 
something like:

"Summary of my perl5 (revision 5 version 6 subversion 1) configuration:"


Grab that line and do some massaging...

-Original Message-
From: Smith, Barry [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 28, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: How to find out the Perl build, not the version?



I can get the build version by looking at $], but I'm interested in the actual build 
version as in 522?

Are there any special variable that I can access?

Any suggestions on how I can find this apart from doing perl -v and parsing out the 
build number?

This message is for the named person's use only. It may contain sensitive and private 
proprietary or legally privileged information. No confidentiality or privilege is 
waived or lost by any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON 
or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve 
the right to monitor all e-mail communications through its networks. Any views 
expressed in this message are those of the individual sender, except where the message 
states otherwise and the sender is authorized to state them to be the views of any 
such entity. Unless otherwise stated, any pricing information given
in this message is indicative only, is subject to change and does not constitute an 
offer to deal at any price quoted. Any reference to the terms of executed transactions 
should be treated as preliminary only and subject to our formal written confirmation.


___
Perl-Win32-Users mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

This message is for the named person's use only. It may contain sensitive and private 
proprietary or legally privileged information. No confidentiality or privilege is 
waived or lost by any mistransmission. If you are not the intended recipient, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON 
or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve 
the right to monitor all e-mail communications through its networks. Any views 
expressed in this message are those of the individual sender, except where the message 
states otherwise and the sender is authorized to state them to be the views of any 
such entity.
Unless otherwise stated, any pricing information given in this message is indicative 
only, is subject to change and does not constitute an offer to deal at any price 
quoted. Any reference to the terms of executed transactions should be treated as  
preliminary only and subject to our formal written confirmation.


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: How to find out the Perl build, not the version?

2002-08-28 Thread Stovall, Adrian M.

Do "perl -V", instead of "perl -v" (capitalize the "v").  The first line
should read something like:

"Summary of my perl5 (revision 5 version 6 subversion 1) configuration:"


Grab that line and do some massaging...

-Original Message-
From: Smith, Barry [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 28, 2002 8:14 AM
To: [EMAIL PROTECTED]
Subject: How to find out the Perl build, not the version?



I can get the build version by looking at $], but I'm interested in the
actual build version as in 522?

Are there any special variable that I can access?

Any suggestions on how I can find this apart from doing perl -v and
parsing out the build number?

This message is for the named person's use only. It may contain
sensitive and private proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you are not the intended recipient, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. CREDIT SUISSE GROUP and each legal entity in the
CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business
units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all
e-mail communications through its networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorized to state them to be the
views of any such entity. Unless otherwise stated, any pricing
information given in this message is indicative only, is subject to
change and does not constitute an offer to deal at any price quoted. Any
reference to the terms of executed transactions should be treated as
preliminary only and subject to our formal written confirmation.


___
Perl-Win32-Users mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs