getlogin


getlogin

 現在のログイン名を返します。

サンプルプログラム

use strict;
use warnings;

print getlogin(), "\n";

関連項目

ログイン名の取得
getpwuid関数