in reply to What is -w?

Hello htmanning,

The -w command line switch is like use warnings; except that whereas the latter is lexically scoped, -w is global. That is, -w activates warnings in used or requiredd modules as well as in the current file. So I find it hard to imagine how including it could actually remove an error.

Can you post the code? Or better yet, can you create a minimal script which exhibits the same behaviour?

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: What is -w?
by Discipulus (Canon) on Apr 28, 2016 at 07:47 UTC
    So I find it hard to imagine how including it could actually remove an error
    It can!
    perl -e "die unless $^W" Died at -e line 1. perl -we "die unless $^W"
    In addition, if understand, OP is running the script in a webserver ("Internal Server Error..") so many things can be involved.

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.