Re: Retrieving Version numbers.

From: Date: Wed, 28 Feb 2001 16:18:13 +0000
Subject: Re: Retrieving Version numbers.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-42024@lists.php.net to get a copy of this message
On Wed, 28 Feb 2001, ACNS-ONLINE Webmaster wrote: > I need to retrieve the version number from differant programs. example: = > "perl -v", or "sendmail -bt -d0", etc.. > > The problem is that (for example perl) the program returns a bunch of BS = > that isn't needed. Does anyone know of a way to access this info = > easily? I.e. with perl try using: perl -e 'print $]' In other cases "preg_match" would be helpful, I guess. Greets, Batonik

« previous php.general (#42024) next »