in reply to Re: Re: How to fetch groups and users on a win2k system
in thread How to fetch groups and users on a win2k system

turning on warnings is a plus. But In general the entire she-bang line is mostly unnecessary on a windows specific application. Active State creates an association between .pl files and perl.exe. The windows shell ignores everything but the switches.

I generally use it to enable warnings and for future compatibility if i ever need to port the script to a *NIX box. But for an app that uses Win32::* this is a moot point, and I'd argue against that being "wrong". under Apache for Windows the she-bang matters and is usually simply #!perl

Replies are listed 'Best First'.
Re: How to fetch groups and users on a win2k system
by Reverend Phil (Pilgrim) on Oct 11, 2002 at 21:08 UTC
    Speaking of perl on win32 - I have some half-way-useful-as-a-quick-reference 8.5x11 6-sided fold-out laminated chart of random perl tomfoolery. One of the small sections it has near the very end is 'environment variables' where it mentions
    PERL5OPT - Default Command-Line Switches
    I'm wondering.. this real? Anyone have the docs on syntax for setting '-w' or the like into your default switches on win32?

    I'd bet they're right in front of me, and I should be spanked for not having seen them or searched long and hard. But I'm not much of a betting man, I'd wager.
    -=rev=-