On Fri, 2006-26-05 at 12:57 +0100, Dan wrote: > "Japerlh" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Help: Is there any way to get the name of the Window Server that the > Perl script is currently running on? > > Thanks. > > > > you can try: > > use Config; > print "OS: $Config{'osname'} $Config{'osver'}\n"; > > returns: > MSWin32 5.0 for me, though that should actually be 5.1. 2000 is 5.0. there's > a module out there, Detect::OS, which i've not tried, but looks to be able > to do more than the standard config can tell you. > > HTH
The problem is that the OP does not tell what 'Window Server' actually means. It could mean: 1. X Window Server (Note the lack of an 's' on Window.) 2. MS Windows Web Server 3. MS Windows (the OS) Clarification is required. -- __END__ Just my 0.00000002 million dollars worth, --- Shawn "For the things we have to learn before we can do them, we learn by doing them." Aristotle * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>