in reply to will assigning variable change the inner value ?

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;'

Replies are listed 'Best First'.
Re^2: will assigning variable change the inner value ?
by xiaoyafeng (Deacon) on Apr 24, 2010 at 11:15 UTC
    Thanks for your reply!




    I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction