bugfix: more improvements for perl's -w