home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / perl / 6863 < prev    next >
Encoding:
Text File  |  1992-11-05  |  1.2 KB  |  33 lines

  1. Newsgroups: comp.lang.perl
  2. Path: sparky!uunet!clsi!glenn
  3. From: glenn@clsi.COM (Glenn Boysko)
  4. Subject: Platform Information from Perl
  5. Message-ID: <GLENN.92Nov5103912@capella.clsi.COM>
  6. Sender: usenet@clsi.COM
  7. Organization: CAD Language Systems Inc.
  8. Distribution: comp.lang.perl
  9. Date: 5 Nov 92 10:39:12
  10. Lines: 21
  11.  
  12.  
  13. Hello All:
  14.  
  15. Is there a _standard_ way that Perl can identify the platform that it is
  16. running on?  I am looking for a way to consistently produce a short, unique
  17. identifier that indicates the platform (sun3, sun4, vax, etc.) that the script
  18. is running on.  I can use this information to build pathnames, etc.
  19.  
  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. Thanks,
  24. Glenn
  25. --
  26. ......................... *                           *   
  27. ..=====.==....=====..===. | Glenn Boysko              | "An eye for an eye,
  28. .======.==...===.....===. | CAD Language Systems, Inc |  a tooth for a tooth,
  29. .==.....==....===....===. |                           |  vote for me and
  30. .======.====....===..===. | glenn@clsi.COM  OR        |  I'll set you free."
  31. ..=====.====.=====...===. | uunet!clsi!glenn          |        -- Daniel Ash
  32. ......................... *                           *
  33.