#!/usr/bin/perl -w sub handle_error { if (open LOG, ">/dev/null") { carpout(LOG); } } print "hello world.\n"; #### Name "main::LOG" used only once: possible typo at bar.pl line 4.