Grips-Gripsrc
view release on metacpan or search on metacpan
sub _readrc
{
my $host = shift;
my($home,$file);
if($^O eq "MacOS") {
$home = $ENV{HOME} || `pwd`;
chomp($home);
$file = ($home =~ /:$/ ? $home . "gripsrc" : $home . ":gripsrc");
} else {
# Some OS's don't have `getpwuid', so we default to $ENV{HOME}
$home = eval { (getpwuid($>))[7] } || $ENV{HOME};
$file = $home . "/.gripsrc";
}
my $fh;
local $_;
$gripsrc{default} = undef;
# OS/2 and Win32 do not handle stat in a way compatable with this check :-(
unless($^O eq 'os2'
( run in 0.261 second using v1.01-cache-2.11-cpan-8d75d55dd25 )