in reply to Re^4: Need a wait to generate a 4 digit "PIN" number
in thread Need a wait to generate a 4 digit "PIN" number
The first argument to join is the string that will be inserted between the rest of the arguments.
That is join '', $d1, $d2, $d3, $d4; is "$d1$d2$d3$d4" but
join $d1, $d2, $d3, $d4; is "$d2$d1$d3$d1$d4".