in reply to Re^2: Validate newline delimited email list
in thread Validate newline delimited email list

$error is set in the first line of code.

You know I meant where it set after being initialized because you added

$error++ unless(Email::Valid->address($_));