Hmm, the code works fine for me using an old 5.005_03 Perl install on Solaris 8.
In reply to Re: using -w breaks simple script by vek in thread using -w breaks simple script by Theo