in reply to uninitialized value in concatenation

In lines 46 and 53, the only variable is $user. So, it must not have a value at that point in your program.

In lines 52 and 60, the only variable is $name. So, it must not have a value at that point in your program.

Suggestion: Explicitly set $user and $name to some value that makes sense. (Something like $user="Bob";$name="Robert";). Do this somewhere before line 46 for $user and before line 52 for $name.

Re-run and see what happens. My guess is that you'll get past these warnings. Earlier in your code, the program must be skipping over the lines where these variables get values.

  • Comment on Re: uninitialized value in concatenation