{ local $/; # this undefines $/ within this block only $all = ; } # $/ is not undefined here so input works as normal again