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

  1. Path: sparky!uunet!lhdsy1!nntpserver.chevron.com!usho92.hou281.chevron.com!hdnea
  2. From: hdnea@usho92.hou281.chevron.com (David Neal)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: Platform information
  5. Message-ID: <1992Nov9.163103.24294@nntpserver.chevron.com>
  6. Date: 9 Nov 92 16:31:03 GMT
  7. References: <GLENN.92Oct19182423@capella.clsi.COM> <1992Nov7.021340.26274@netlabs.com>
  8. Sender: news@nntpserver.chevron.com (USENET News System)
  9. Distribution: comp.lang.perl
  10. Organization: Chevron
  11. Lines: 41
  12.  
  13. In article <1992Nov7.021340.26274@netlabs.com> lwall@netlabs.com (Larry Wall) writes:
  14. >In article <GLENN.92Oct19182423@capella.clsi.COM> glenn@clsi.COM (Glenn Boysko) writes:
  15. >: 
  16. >: Hello All:
  17. >: 
  18. >: Is there a _standard_ way that Perl can identify the platform that it is
  19. >: running on?  I am looking for a way to consistently produce a short, unique
  20. >: identifier that indicates the platform (sun3, sun4, vax, etc.) that the script
  21. >: is running on.  
  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.  
  28.  
  29. Yes, BUT would it be possible to add such an item?? It would not
  30. have to be determined dynamically, after all. A compile time
  31. constant that was in the same variable on each platform would be
  32. enough: $_!_@#$ or something.
  33.  
  34. Configure
  35.  
  36. .
  37. .
  38. .
  39.  
  40. The Perl variable $_!_@#$ can be pre-loaded with a cpu-type. This
  41. may help perl scripts deal with cpu specific problems like
  42. the size of an int. Value for $_!_@#$ (none for none) [sun4] 
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. -- 
  50. David Neal -- hdnea@hou281.chevron.com 
  51. Conserve water, California's deserts need more cotton farms.
  52. Barbie says, Take quaaludes in gin and go to a disco right away!
  53.  But Ken says, WOO-WOO!!  No credit at ``Mr. Liquor''!!
  54.