home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!netsys!news!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.lang.perl
- Subject: Re: Platform information
- Message-ID: <1992Nov7.021340.26274@netlabs.com>
- Date: 7 Nov 92 02:13:40 GMT
- References: <GLENN.92Oct19182423@capella.clsi.COM>
- Sender: news@netlabs.com
- Distribution: comp.lang.perl
- Organization: NetLabs, Inc.
- Lines: 16
- Nntp-Posting-Host: scalpel.netlabs.com
-
- 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. I can use this information to build pathnames, etc.
- :
- : I am aware that I can inspect the file system for the presence of certain
- : files, but was wondering if Perl had anything builtin...
-
- 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
-