in reply to using -w breaks simple script

You have a control-M character after your '-w':
$ cat -v xx #!/usr/bin/perl -w^M print "test\n"; $ /opt/perl/5.005_02/bin/perl xx on #! line at xx line 1. $ /opt/perl/5.6.0/bin/perl xx test

So, either upgrade, or remove the ^M character.

Abigail

Replies are listed 'Best First'.
Re: Re: using -w breaks simple script
by belg4mit (Prior) on Oct 15, 2003 at 20:53 UTC
    Very good catch.

    --
    I'm not belgian but I play one on TV.