until(!defined($_ = <STDIN>) and /exit|quit|(^\s*$)/i) { } [download]
while(<STDIN>){ last if /exit|quit|(^\s*$)/i; } [download]
In reply to Re: $_ unitialized by Anonymous Monk in thread $_ unitialized by alexx1523