# at the top of the script: $sb="\013"; $eb="\034"; # those two values are never altered anywhere else in the main portion of the script. # then, later... sub whatever { local ($sb); local ($eb); $sb="\013"; $eb="\034"; # rest of sub }