in reply to Re: Premature end of script error
in thread Premature end of script error

For one I would "use warnings;" - it gives you extra info. Just standard procedure to use that.. never know..

It doesn't give extra info wrt -w, but it is more flexible. (So yours is indeed a good recommendation.)