It works here (Linux). What's your operating system, Perl version?
In reply to Re: error message not working by fglock in thread error message not working by Anonymous Monk