RE: masks earlier declaration in same scope

2014-10-13 Thread Boylan, Ross
Thanks for your tips; they led to some experiments and gradual understanding of references. I'm still puzzled by the error messages. BACKGROUND Substantively, I am trying to modify Debian's adduser code so that it pays attention to a template of values from a previous system, to preserve the n

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

Re: masks earlier declaration in same scope

2014-10-13 Thread Charles DeRykus
On Mon, Oct 13, 2014 at 1:04 AM, Boylan, Ross wrote: > 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 de

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