getpwuid() returns different results depending on whether it's called in list context (as with print), or in scalar context, i.e. $a = ... Try
$ perl -e '@a = getpwuid($<); print @a;'
In reply to Re: will assigning variable change the inner value ?
by almut
in thread will assigning variable change the inner value ?
by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |