c - Why is getlogin() succeeding even if there is no
Jun 21, 2012 · 1 Answer1. Show activity on this post. Closing or redirecting STDIN to a file does the trick. $ perl -wE'say getlogin ()' eric $ perl -wE'open STDIN, "<", "/dev/null" or die $!; say getlogin ()' Use of uninitialized value in say at -e line 1. This is a self-built Perl (default options) on a Debian box.
DA: 72 PA: 94 MOZ Rank: 45