Linux-DVB-DVBT-Advert
view release on metacpan or search on metacpan
lib/Linux/DVB/DVBT/Advert/Config.pm view on Meta::CPAN
push @$DEFAULT_CONFIG_PATH, "$home/tv" ;
}
# add current dir
push @$DEFAULT_CONFIG_PATH, "." ;
}
elsif ( $^O eq 'darwin')
{
if (!$home)
{
$home = (getpwuid($<))[7];
}
$DEFAULT_CONFIG_PATH = [] ;
if ($home && -d $home)
{
push @$DEFAULT_CONFIG_PATH, "$home/tv" ;
}
# add current dir
push @$DEFAULT_CONFIG_PATH, "." ;
}
elsif ( $^O eq 'MacOS' )
{
if (!$home)
{
# On some platforms getpwuid dies if called at all
local $SIG{'__DIE__'} = '';
$home = (getpwuid($<))[7];
}
$DEFAULT_CONFIG_PATH = [] ;
if ($home && -d $home)
{
push @$DEFAULT_CONFIG_PATH, "$home/tv" ;
}
# add current dir
push @$DEFAULT_CONFIG_PATH, "." ;
( run in 0.255 second using v1.01-cache-2.11-cpan-8d75d55dd25 )