http://www.perlmonks.org?node_id=1025687


in reply to Re^2: <> oddity ?
in thread <> oddity ?

It is explained in the post of Lanx

In the first case the program is waiting for the user to type a value for the variable $line; in the second and third cases a default value is provided instead, $line = '-';