in reply to what does '$| = 1' mean?

This and other predefined variables are explained on the perlvar page. The perldoc command will get you there as well. Try 'perldoc perlvar' from your command line.