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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to