in reply to Re^3: improving the aesthetics of perl code
in thread improving the aesthetics of perl code

Not blindingly obvious, no. What you probably missed is the -T at the top of the code. This means that the original code will untaint parts of @TMP (assigning to $_ should affect the original array entry) at the same time as making a wholly untainted @hosts. Since @TMP doesn't seem to be used again, the $_=$1 part seems somewhat useless ;-)

  • Comment on Re^4: improving the aesthetics of perl code