home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!lhdsy1!nntpserver.chevron.com!usho92.hou281.chevron.com!hdnea
- From: hdnea@usho92.hou281.chevron.com (David Neal)
- Newsgroups: comp.lang.perl
- Subject: Re: Platform information
- Message-ID: <1992Nov9.163103.24294@nntpserver.chevron.com>
- Date: 9 Nov 92 16:31:03 GMT
- References: <GLENN.92Oct19182423@capella.clsi.COM> <1992Nov7.021340.26274@netlabs.com>
- Sender: news@nntpserver.chevron.com (USENET News System)
- Distribution: comp.lang.perl
- Organization: Chevron
- Lines: 41
-
- In article <1992Nov7.021340.26274@netlabs.com> lwall@netlabs.com (Larry Wall) writes:
- >In article <GLENN.92Oct19182423@capella.clsi.COM> glenn@clsi.COM (Glenn Boysko) writes:
- >:
- >: Hello All:
- >:
- >: Is there a _standard_ way that Perl can identify the platform that it is
- >: running on? I am looking for a way to consistently produce a short, unique
- >: identifier that indicates the platform (sun3, sun4, vax, etc.) that the script
- >: is running on.
- >
- >No, your best bet is probably to run uname -a and try to intuit from there.
- >You might look at how Configure tries to find hints files.
- >
- >Larry
-
-
- Yes, BUT would it be possible to add such an item?? It would not
- have to be determined dynamically, after all. A compile time
- constant that was in the same variable on each platform would be
- enough: $_!_@#$ or something.
-
- Configure
-
- .
- .
- .
-
- The Perl variable $_!_@#$ can be pre-loaded with a cpu-type. This
- may help perl scripts deal with cpu specific problems like
- the size of an int. Value for $_!_@#$ (none for none) [sun4]
-
-
-
-
-
-
- --
- David Neal -- hdnea@hou281.chevron.com
- Conserve water, California's deserts need more cotton farms.
- Barbie says, Take quaaludes in gin and go to a disco right away!
- But Ken says, WOO-WOO!! No credit at ``Mr. Liquor''!!
-