ASP4
view release on metacpan or search on metacpan
t/010-basic/000-setup.t view on Meta::CPAN
910111213141516171819202122232425262728my
$temp_root
=
'/tmp'
;
if
( $^O =~ m{win32}i )
{
$temp_root
=
$ENV
{TEMP} ||
$ENV
{TMP};
}
# end if()
my
$dbfile
=
"$temp_root/db_asp4"
;
open
my
$ofh
,
'>'
,
$dbfile
or
die
"Cannot open '$dbfile' for writing: $!"
;
binmode
(
$ofh
);
SCOPE: {
no
warnings
'uninitialized'
;
$ofh
undef
;
};
close
(
$ofh
);
my
$dbh
= DBI->
connect
(
"DBI:SQLite:dbname=$dbfile"
,
""
,
""
, {
RaiseError
=> 1,
});
( run in 0.401 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )