home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6886 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.1 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!netsys!news!netlabs!lwall
  2. From: lwall@netlabs.com (Larry Wall)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Platform information
  5. Message-ID: <1992Nov7.021340.26274@netlabs.com>
  6. Date: 7 Nov 92 02:13:40 GMT
  7. References: <GLENN.92Oct19182423@capella.clsi.COM>
  8. Sender: news@netlabs.com
  9. Distribution: comp.lang.perl
  10. Organization: NetLabs, Inc.
  11. Lines: 16
  12. Nntp-Posting-Host: scalpel.netlabs.com
  13.  
  14. In article <GLENN.92Oct19182423@capella.clsi.COM> glenn@clsi.COM (Glenn Boysko) writes:
  15. : Hello All:
  16. : Is there a _standard_ way that Perl can identify the platform that it is
  17. : running on?  I am looking for a way to consistently produce a short, unique
  18. : identifier that indicates the platform (sun3, sun4, vax, etc.) that the script
  19. : is running on.  I can use this information to build pathnames, etc.
  20. : I am aware that I can inspect the file system for the presence of certain
  21. : files, but was wondering if Perl had anything builtin...
  22.  
  23. No, your best bet is probably to run uname -a and try to intuit from there.
  24. You might look at how Configure tries to find hints files.
  25.  
  26. Larry
  27.