Char-Sjis
view release on metacpan or search on metacpan
lib/Esjis.pm view on Meta::CPAN
#
sub my_home_MacOS {
# Try for $ENV{'HOME'} if we have it
if (defined $ENV{'HOME'}) {
return $ENV{'HOME'};
}
### DESPERATION SETS IN
# We could use the desktop
SCOPE: {
local $@;
CORE::eval {
# Find the desktop via Mac::Files
local $SIG{'__DIE__'} = '';
CORE::require Mac::Files;
my $home = Mac::Files::FindFolder(
Mac::Files::kOnSystemDisk(),
Mac::Files::kDesktopFolderType(),
);
return $home if $home and Esjis::d($home);
};
}
lib/Esjis.pm view on Meta::CPAN
$dir = join '', @char;
croak "Perl$] can't chdir to $dir (chr(0x5C) ended path)";
}
return $chdir;
}
# rejected idea ...
elsif (0) {
# MSDN SetCurrentDirectory function
# http://msdn.microsoft.com/ja-jp/library/windows/desktop/aa365530(v=vs.85).aspx
#
# Data Execution Prevention (DEP)
# http://vlaurie.com/computers2/Articles/dep.htm
#
# Learning x86 assembler with Perl -- Shibuya.pm#11
# http://developer.cybozu.co.jp/takesako/2009/06/perl-x86-shibuy.html
#
# Introduction to Win32::API programming in Perl
# http://d.hatena.ne.jp/TAKESAKO/20090324/1237879559
#
( run in 0.320 second using v1.01-cache-2.11-cpan-299005ec8e3 )