in reply to use Win2000; and alike

Eeek! I don't want to sound rude, but that is one of the worst ideas I've ever heard. One of the big advantages of using Perl is that it is cross-platform. If I feel like developing a script to read from Oracle, I can write and test it on my Windows machine first, and then move it to UNIX when I really want it to run. And the UNIX I use depends on the project I'm woking on. With Perl, I depend on the fact that what runs on one platform will work on another. An idea like this would turn Perl into the next VB.

Replies are listed 'Best First'.
Re: Re: use Win2000; and alike
by BrotherAde (Pilgrim) on Jun 06, 2002 at 13:52 UTC

    That's true, however, there are cases where the cross-platformness (or is thet cross-platformity? platformitude??) of Perl break down. Try perlport for a couple of examples. I've been bitten myself because alarm() doesn't exist on Win32 platforms...

    BrotherAde
      So are you suggesting having
      use PosixCompliant;
Re: Re: use Win2000; and alike
by vkonovalov (Monk) on Jun 06, 2002 at 16:34 UTC
    Perl also can be used for some given platform, and there is no bad having possibility to check whether a script that designed for a special platform is really executed on that platform.
    In general, yes, it is good to write portable scripts, but sometimes it is important to use some local internals that do not exist everywhere

    And why there exist a whole bunch of Win32::* modules, which are no way portable?

    Vadim.

Re: Re: use Win2000; and alike
by demerphq (Chancellor) on Jun 06, 2002 at 18:56 UTC
    There are tons of OS specific features that are both widely used and embedded into perl. This hasnt balkanized it onto one platform. And most of those features are UNIX specific. In fact as a solely NT user I come across UNIX specific code all the time, but it pretends to be portable when it isnt.

    Also note that nothing in the OP's idea would change your current practice. Nothing would _force_ you to use the feature.

    Yves / DeMerphq
    ---
    Writing a good benchmark isnt as easy as it might look.

Re: Re: use Win2000; and alike
by Courage (Parson) on Jun 06, 2002 at 16:16 UTC
    Didn't you ever heard that sometimes perl can be used for administrative programming, and WMI managing is an example, and this will work for Win2000 and will not for WinNT (there are no such COM objects there) ?
    In this case I can suggest you to read some materials to become a bit more knowledgable person.

    If you don't know about a possibility this does not mean such possibility does not exists.

    Courage, the Cowardly Dog.
    PS. I knew I not gonna like this