El codigo
#By Doddy H
use Cwd;
sub getdrive {
$path = getcwd();
if ($path=~/(.*):\/\//ig or $path=~/(.*):\//) {
return $1.":/";
}
}
Ejemplo de uso Código: Seleccionar todo
print getdrive();
#By Doddy H
use Cwd;
sub getdrive {
$path = getcwd();
if ($path=~/(.*):\/\//ig or $path=~/(.*):\//) {
return $1.":/";
}
}
Ejemplo de uso Código: Seleccionar todo
print getdrive();
Volver a “Otros lenguajes de Scripting”