http://www.perlmonks.org?node_id=189035


in reply to Unexpected warnings in log file.

#!/bin/perl -wT
Take out that pesky w on your shebang line. . .

:-)

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Unexpected warnings in log file.
by TexasTess (Beadle) on Aug 09, 2002 at 21:23 UTC
    Can't be the -w after the shebang, the system log would not change the case of the character..and it specifically references a "W" not a "w".

    This is a long shot..but are you writing this code in a windows environment then moving it to a *unix server? The following line might be your culprit because of the carriage return after the "return"...
    return $WebPage->popup_menu ( -values =>
    Try it this way:
    return $WebPage->popup_menu ( -values =>
    There are instances where carriage returns are translated into "." thus the concatonation reference in the warning...I'd like it if you tried taking it out just to humor me...

    TexasTess
    "Great Spirits Often Encounter Violent Opposition From Mediocre Minds" --Albert Einstein
      No. I am writing it on a Linux server. I use Kate as my editor. I was also given to understand that perl doesn't care about whitespace in this type of instance.