RE: masks earlier declaration in same scope

2014-10-13 Thread Boylan, Ross
h the value is returned? How does perl know whether (0) = a scalar expression with parentheses for precedence grouping (vacuously in this case); or a single element list; or, if a function precedes it, () indicating function arguments? Ross P.S. Sorry, my mail client basically forces top-posti

RE: masks earlier declaration in same scope

2014-10-13 Thread Boylan, Ross
I think I figured out one thing from my earlier message: print '$template{uname}{ross} =' , $template{uname}{ross}, "\n"; #$template{uname}{ross} =ARRAY(0x20f41d8) # I'm still surprised this worked. Somehow we've gone 2 levels down with one $. print '${$template{uname

masks earlier declaration in same scope

2014-10-13 Thread Boylan, Ross
perl -c adduser gives its first error as "my" variable $new_uid masks earlier declaration in same scope at adduser line 283. First, it doesn't seem to me I'm declaring the variable at all at 283. I suppose it could be an implicit declaration if there wasn't a previous declaration, but there is