$FLUSH = $ENV{FLUSH} || 1; #### bash# AUTOFLUSH=1 /path/to/script.pl