#!/bin/perl -w use strict; { local $/="|--------------------------------------|\n"; while( ) { [SNIP] } [SNIP] } ### Here in the program, the operator will now behave normally ### Before you could have been burned, since any other calls ### to would see the specialized value of $/, even calls ### in subroutines. As you can imagine, this is a pain to debug ### Its best to avoid this trap altogether as I have done above.