public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: linda w <cygwin@tlinx.org>
To: Brian.Kelly@Empireblue.com, cygwin@cygwin.com
Subject: Re: [Fwd: Bug: Perl:IsWinNT undefined & RFE, only use "/" in reg values, not names..?]
Date: Thu, 19 Feb 2004 22:24:00 -0000	[thread overview]
Message-ID: <40350E21.9010204@tlinx.org> (raw)
In-Reply-To: <OF99E3B9F6.103EAD3E-ON85256E3F.004C687C-85256E3F.004D4068@empirehealthcare.com>

What features does one get with a unix perl over a perl built where 
"WinNT" is
defined as true or false?  Many (most? all?) of the Win32 calls are 
available
in the Cygwin environment, why not compile the perl as a mixed breed 
perl that
defines WinNT?

What is lost by allowing Perl to make libwin32 calls.

If Cygwin is supposed to enable me to run my utils and scripts from bash or
cnd.exe, then why should perl be different?  What do I lose by defining 
-MWin32
in the PERL5OPS?, or put another way, why isn't it on and present all 
the time?

Besides, it seems, that the cpan modules for perl can't be for active state
perl since they have their own package manager -- but are for the 
floundering
win32-perl that is mostly eclipsed by active state's perl and cygwin's 
perl.

I suppose I find it frustrating to find books/examples about win32-perl that
don't quite work on active state and don't quite work on cyg_WIN_ (vs. a
cygunix product that might infer a variant of unix).

It seems cyg_win_ was designed to add POSIX  and unix compatibility and
functionality to the _Win_ environment with the intent of making things
_easier_ (Easy is good -- not everyone can be a master of every technology).
So why not make things easier for perl scripters as well by starting with
a perl that is unix (works with cpan, handles paths with "//", "/") and
win (paths handle "\\", ":" and "\\\\" and define WinNT) compatible?

Is there some fundamental reason why they can't both be present in perl?

I think part of the problem is that Perl is both an "app" (can be view as
a unix app to be transferred over), or can be viewed as part of the
development environment (as it is a development tool) that also understands
it is running in a mixed mode.

I'm favoring the latter view, obviously, while some have taken the former
view.  I'm just thinking it makes cygperl so much more accessible/useful to
have it understand it's mixed mode heritage as well.

Is that something real difficult or impossible to do?

(I don't know, never having built perl in the first place.)

Linda



Brian.Kelly@Empireblue.com wrote:

> Seems to me you answered your own question. The perl that's bundled with
>
>Cygwin is *NOT*
>an Active-State-*like* Win32 version of perl. It's really a *unix* built
>version of perl that
>-requires- Cygwin to even run on Windoze at all. That being the case,
>Cygwin perl *thinks* its
>running on unix - not Win32. Therefore, modules that expect direct,
>non-POSIX access to the
>Win32 subsystem are gonna need some help that wouldn't otherwise be
>necessary with a true
>Win32 build of Perl.
>
>Brian Kelly
>  
>


-- 
    In the marketplace of "Real goods", capitalism is limited by safety
    regulations, consumer protection laws, and product liability.  In
    the computer industry, what protects the consumer?



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2004-02-19 19:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-19 15:15 Brian.Kelly
2004-02-19 22:24 ` linda w [this message]
2004-02-19 23:11   ` Yitzchak Scott-Thoennes
2004-02-19 23:37   ` Christopher Faylor
2004-02-28 19:06     ` linda w
2004-02-28 20:40       ` Christopher Faylor
2004-02-29 21:00       ` Yitzchak Scott-Thoennes
2004-02-22 16:01   ` Gerrit P. Haase
  -- strict thread matches above, loose matches on Subject: below --
2004-02-20  0:05 [Fwd: Bug: Perl:IsWinNT undefined & RFE, only use "/" in reg values, not names..?] Brian.Kelly
2004-02-12 18:22 linda w
2004-02-12 18:49 ` Igor Pechtchanski
2004-02-12 19:04   ` Christopher Faylor
2004-02-12 20:04     ` Igor Pechtchanski
2004-02-12 21:10 ` Rafael Kitover
2004-02-17  2:55   ` linda w
2004-02-19 11:15   ` linda w
2004-02-19 15:52     ` Yitzchak Scott-Thoennes
2004-02-19 16:29       ` Yitzchak Scott-Thoennes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40350E21.9010204@tlinx.org \
    --to=cygwin@tlinx.org \
    --cc=Brian.Kelly@Empireblue.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).