my $username = getpwuid($<);
Not sure how well it does on MSWin32.
In reply to Re: What is the best way to find username running your script?
by tobyink
in thread What is the best way to find username running your script?
by dr.jekyllandme
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |