http://qs1969.pair.com?node_id=214871


in reply to Perl Script only runs with -w switch

It could be that . on line 63!


Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
Pick up your cloud down the end and "Yes" if you get allocated a grey one they are a bit damp under foot, but someone has to get them.
Get used to the wings fast cos its an 8 hour day...unless the Govenor calls for a cyclone or hurricane, in which case 16 hour shifts are mandatory.
Just be grateful that you arrived just as the tornado season finished. Them buggers are real work.

  • Comment on Re: Perl Script only runs with -w switch

Replies are listed 'Best First'.
Re: Re: Perl Script only runs with -w switch
by broquaint (Abbot) on Nov 21, 2002 at 19:03 UTC
    I'm of the opinion that it's the following line
    ## mess with anyone who ports this script die("mwahahaha!") if $^O eq 'linux' and !$^W;

    _________
    broquaint

Re: Re: Perl Script only runs with -w switch
by hydo (Monk) on Nov 21, 2002 at 19:23 UTC
    Look again. The problem clearly lies on that one line where it does that stuff... you know... with the underscore and the dollar sign? Yea, right in that general area.

    *edit*
    1. If it only runs with the -w switch, isn't that better?! I think that's how all perl code should be. I'd even go so far as to say Acme::Code::Police should be a required module.
    2. You might want to post the code or at least post a link to it or something. If the script is really really long, you might consider using nopaste.