[25321] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 7566 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Dec 24 11:05:47 2004

Date: Fri, 24 Dec 2004 08:05:25 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Fri, 24 Dec 2004     Volume: 10 Number: 7566

Today's topics:
    Re: Can I run perl under windows line by line? <mritty@gmail.com>
    Re: Can I run perl under windows line by line? <lawshouse.public@btconnect.com>
    Re: How can script find its host's name/IP address? <karlUNDERSCOREkramsch@yahooPERIODcom.invalid>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 24 Dec 2004 13:00:07 GMT
From: "Paul Lalli" <mritty@gmail.com>
Subject: Re: Can I run perl under windows line by line?
Message-Id: <rpUyd.11290$152.5580@trndny01>

"wld" <aaabbb16@hotmail.com> wrote in message
news:dc998cfd.0412240258.fbe854c@posting.google.com...
> I have installed Activeperl 5.8.6  MSI.
> and under ppm propmt: I give "search Win32::API" command
> select 1.Win32_API. installed Win32 API. Is this all I need to run
perl
> under windows?

Win32::API is not needed to run perl under windows.  Win32::API will
give you access to certain Win32 API function calls.  It is certainly
not needed for anything that's not windows-specific.

> Waht does any package I need?

Only you can answer that.  Activestate Perl is runnable out of the box.
You only need to download and install modules as they become necessary
(or just helpful) for the task at hand.  You haven't told us what your
task at hand is yet.

> Is it possible enter "perl mode" prompt then I can run a perl command
> line by line just like Tcl does.

I have no idea what Tcl does.   You can run a perl script from STDIN by
opening a command prompt and just typing
perl
followed by the code you wish to execute, and then the EOF marker
(generally CTRL-Z or CTRL-D)

You can run perl more interactively by launching the built-in debugger
by typing
perl -d
that will allow you to interactively evaluate perl code.  type h or h h
from within the debugger for more info, or look at
perldoc perldebug
from your command prompt.

Hope this helps,
Paul Lalli



------------------------------

Date: Fri, 24 Dec 2004 13:01:32 +0000
From: Henry Law <lawshouse.public@btconnect.com>
Subject: Re: Can I run perl under windows line by line?
Message-Id: <7d4os09f6surhbvq02ntk0apml6ttm2qds@4ax.com>

On 24 Dec 2004 02:58:57 -0800, aaabbb16@hotmail.com (wld) wrote:

>I have installed Activeperl 5.8.6  MSI.
>and under ppm propmt: I give "search Win32::API" command
>select 1.Win32_API. installed Win32 API. Is this all I need to run perl
>under windows?

I wonder if that's the question you really want to ask.  Installing
ActivePerl is "... all you need to run Perl under windows".  Many
packages, including a number supplied with ActiveState, provide access
to parts of Windows via the API, and I presume "Win32::API" (with
which I am not familiar) is another of those.

See if this helps: 

* To run Perl under windows you need a Windows port of perl.
ActiveState Perl is one of those (there are others)

* To use Perl for Windows programming via the Windows API you need
additional packages, some of which are supplied with ActiveState.
Win32::API may be all you need, it may not - it depends on what
elements of the API you want to use, and how your exact requirement
matches the function of that package.

>Is it possible enter "perl mode" prompt then I can run a perl command
>line by line just like Tcl does.

Perl has a debugging mode; look in the documentation.  There is also
an "Open Perl IDE" available; it's far from perfect but in my opinion
it's very usable.  It provides the ability to set breakpoints, inspect
variables and so on.
-- 

Henry Law       <><     Manchester, England 


------------------------------

Date: Fri, 24 Dec 2004 13:48:33 +0000 (UTC)
From: KKramsch <karlUNDERSCOREkramsch@yahooPERIODcom.invalid>
Subject: Re: How can script find its host's name/IP address?
Message-Id: <cqh6ng$9c2$1@reader1.panix.com>

In <PPJyd.18110$Z%3.947490@news20.bellglobal.com> "Matt Garrish" <matthew.garrish@sympatico.ca> writes:
>I still look at the sparsity of the original post and see someone who wants 
>to write a (portable) cgi script that doesn't require knowing the server 
>it's running on in advance. As I said, if I'm wrong, I'm wrong. I had to 
>correct the poster who claimed that such a thing does not exist, though.

And who was that poster, pray tell, and where did he/she claim that
"such a thing does not exist"?

	Karl
-- 
Sent from a spam-bucket account; I check it once in a blue moon.  If
you still want to e-mail me, cut out the extension from my address,
and make the obvious substitutions on what's left.


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 7566
***************************************


home help back first fref pref prev next nref lref last post