Subject: Re: whereami.pl function
To: NetBSD/i386 Mailing List <email@example.com>
From: Alex van Denzel <firstname.lastname@example.org>
Date: 10/11/1999 20:41:08
> Had an interesting thought last night: in APL Quote Quad I remember
> a discussion about a function call "whereami", which would determine
> which dialect of APL you were using.
> Would it be possible to write such a function in PERL? It would
> tell which OS PERL was being run under. If I could determine which
> OS the perl app was run under, could I not then choose a config
> file to run it under that particular OS?
I know that linux has a /proc/version pseudo-file available. I don't
have a running netbsd, but something like /kern/version or /proc/version
(assuming kernfs and/or procfs is mounted) should be available.
Or try to find the version message in /var/log/dmesg (linux) or the