in reply to Re: How to get system user name from windows using perl
in thread How to get system user name from windows using perl
thanks for your reply and I tried as you said like this,
my $username = getlogin || getpwuid($<) || "veeru"; print $username;
it printing my usename its working ok but How can I use this variable in my template process.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to get system user name from windows using perl
by Eliya (Vicar) on Nov 10, 2011 at 15:18 UTC | |
by veerubiji (Sexton) on Nov 10, 2011 at 16:39 UTC |