... for what it is worth...#!/usr/bin/perl use strict; my $use_dbi = 1; eval("use DBI;"); $use_dbi = 0 if (not($@)); print `uname -n`; print `prtconf |grep Mem` if (`uname` eq 'SunOS'); print `cat /proc/meminfo` if (`uname` eq 'Linux'); if ($use_dbi) { use DBI; print "Hurray!!\n"; } else { print "NO DBI\n"; }
Thanks for the interest.
In reply to Re^4: DBI detector?
by jcpunk
in thread DBI detector?
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |