[13926] in Perl-Users-Digest

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

No subject found in mail header

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Nov 10 17:48:08 1999

Date: Mon, 8 Nov 1999 15:15:23 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <942102922-v9-i1322@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Mon, 8 Nov 1999     Volume: 9 Number: 1322

Today's topics:
    Re: PERL in Windows CE? <emschwar@rmi.net>
    Re: perl talking to Mumps via sockets (Kragen Sitaker)
        Perl/TK is there a W9X binairy of Perl/TK <weterings@schiphol.nl>
    Re: Perl/TK is there a W9X binairy of Perl/TK <carvdawg@patriot.net>
    Re: Perl/TK is there a W9X binairy of Perl/TK <gellyfish@gellyfish.com>
    Re: Perl/TK is there a W9X binairy of Perl/TK <cassell@mail.cor.epa.gov>
    Re: porting ksh to perl <gellyfish@gellyfish.com>
    Re: porting ksh to perl <cassell@mail.cor.epa.gov>
    Re: Q: digit-wise number comparisons ? (M.J.T. Guy)
        running dos command from perl gqc2017@my-deja.com
    Re: Running perl on NT <tmayer@econet.hu>
    Re: sizeof($myvar) in perl? <lr@hpl.hp.com>
    Re: sizeof($myvar) in perl? (Kragen Sitaker)
    Re: Software package for creating dynamic web pages fro (Kragen Sitaker)
    Re: splitting, without losing the thing you split with <aqumsieh@matrox.com>
    Re: tutorial or help on HTML parser <gellyfish@gellyfish.com>
    Re: tutorial or help on HTML parser <cassell@mail.cor.epa.gov>
    Re: Web based email program <cassell@mail.cor.epa.gov>
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: 08 Nov 1999 14:06:11 -0700
From: Eric The Read <emschwar@rmi.net>
Subject: Re: PERL in Windows CE?
Message-Id: <xkfr9i0elrw.fsf@valdemar.col.hp.com>

bart.lateur@skynet.be (Bart Lateur) writes:
> Does Perl run on a HP pocket calculator?

Define "pocket".  I bet I could fake a reasonable subset on a 48GX with
maxed-out expansion slots. :)

-=Eric
-- 
"Cutting the space budget really restores my faith in humanity.  It
eliminates dreams, goals, and ideals and lets us get straight to the
business of hate, debauchery, and self-annihilation."
                -- Johnny Hart


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

Date: Mon, 08 Nov 1999 21:20:11 GMT
From: kragen@dnaco.net (Kragen Sitaker)
Subject: Re: perl talking to Mumps via sockets
Message-Id: <f8HV3.58312$23.2198193@typ11.nn.bcandid.com>

In article <38280fd7.9085248@news.mindspring.com>,
Tom <a002818t@bc.seflin.org> wrote:
>This is my first attempt at working with sockets so be gentle.  :)
>
>I'm writing a perl client to communicate with a server written in
>Mumps (DSM under VMS) via TCP/IP sockets.  I have the client and
>server talking nicely ecept for the fact that I have to pause 1 second
>between messages sent to perl from mumps.  Without the delay, to
>communication quickly gets out of sync.  The records being sent back
>are forth are variable length.   Any assistance would be greatly
>appreciated. 

Is it possible that you are sometimes receiving partial records?
Perhaps you should switch from using recv() to using read().

>$paddr = sockaddr_in(99999, $iaddr);
>
>$proto = getprotobyname('tcp');
>socket(SOCK, PF_INET, SOCK_STREAM, $proto) or die "socket: $!";
>connect(SOCK, $paddr) or die "connect: $!";

You might consider using IO::Socket, which makes this junk easier.
-- 
<kragen@pobox.com>       Kragen Sitaker     <http://www.pobox.com/~kragen/>
Tue Nov 02 1999
6 days until the Internet stock bubble bursts on Monday, 1999-11-08.
<URL:http://www.pobox.com/~kragen/bubble.html>


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

Date: Mon, 8 Nov 1999 20:44:40 +0100
From: "Wil \"Spock\" Weterings" <weterings@schiphol.nl>
Subject: Perl/TK is there a W9X binairy of Perl/TK
Message-Id: <80797b$6b1$1@zonnetje.nl.uu.net>

Perl/TK is there a W9X binairy of Perl/TK ?. I have looked in several news
groups and at www.perl.com.

Please respond to weterings@schiphol.nl






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

Date: Mon, 08 Nov 1999 17:02:31 -0500
From: "Harlan Carvey, CISSP" <carvdawg@patriot.net>
Subject: Re: Perl/TK is there a W9X binairy of Perl/TK
Message-Id: <38274877.4C4BDE67@patriot.net>

> Perl/TK is there a W9X binairy of Perl/TK ?. I have looked in several news
> groups and at www.perl.com.

Well, if you have ActiveState's Perl installed, just type:

c:\perl\bin>ppm install Tk



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

Date: 8 Nov 1999 20:46:22 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl/TK is there a W9X binairy of Perl/TK
Message-Id: <807cqu$fg6$1@gellyfish.btinternet.com>

In comp.lang.perl.misc "Wil \"Spock\" Weterings" <weterings@schiphol.nl> wrote:
> Perl/TK is there a W9X binairy of Perl/TK ?. I have looked in several news
> groups and at www.perl.com.
> 

I assume that you mean windows 95 or 98 - if so you will be able to get
th Tk module for the Activestate port <http://www.activestate.com> if and
when you have that version of Perl installed you can install the Tk
with the PPM (Perl Package Manager) utility that comes with that
distribution by simply typing (assuming you are connected to the
internet):

   ppm install Tk

at your command prompt. For other ways of using PPM you will want to read
the manual which comes with ActivePerl.

/J\
-- 
Jonathan Stowe <jns@gellyfish.com>
<http://www.gellyfish.com>
Hastings: <URL:http://dmoz.org/Regional/UK/England/East_Sussex/Hastings>


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

Date: Mon, 08 Nov 1999 14:43:59 -0800
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Perl/TK is there a W9X binairy of Perl/TK
Message-Id: <3827522F.B1181C46@mail.cor.epa.gov>

Wil "Spock" Weterings wrote:
> 
> Perl/TK is there a W9X binairy of Perl/TK ?. I have looked in several news
> groups and at www.perl.com.

Well Spock, you have not shown true Vulcan determination.
Because www.perl.com has a link to www.activestate.com ,
where you can download a binary for all win32 systems.
This subject has been discussed here _ad_infinitum_, so
you must not have searched this newsgroup too hard either.
Once you have Perl, you can use ActiveState's ppm program
to snag a copy of Tk, all set up for your system.

> Please respond to weterings@schiphol.nl

But that's not a polite way to perform Usenet communications.
Perhaps you should also read news.newusers.questions and
find out what is expected of posters.  In particular, the
comp.lang.perl.misc newsgroup has definite standards to which
posters aare expected to adhere.  Thanks in advance for
following them the next time.

David
-- 
David Cassell, OAO                     cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician


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

Date: 8 Nov 1999 21:59:52 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: porting ksh to perl
Message-Id: <807h4o$fjh$1@gellyfish.btinternet.com>

On Mon, 8 Nov 1999 09:38:35 +0100 John Everitt wrote:
> We currently have a number of ksh scripts that we would like to port to perl
> and I was wondering whether anybody knew of any automated methods for doing
> this conversion.
> 

#!/usr/bin/perl -w

use strict;

my $kscript = do { local $/; <> };

print <<EOOUT;
#!/usr/bin/perl -w

use strict;

my \$blah =<<`EOKSH`;
$kscript
EOKSH
EOOUT


HTH

/J\
-- 
Jonathan Stowe <jns@gellyfish.com>
<http://www.gellyfish.com>
Hastings: <URL:http://dmoz.org/Regional/UK/England/East_Sussex/Hastings>


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

Date: Mon, 08 Nov 1999 14:17:34 -0800
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: porting ksh to perl
Message-Id: <38274BFE.5FCC2629@mail.cor.epa.gov>

John Everitt wrote:
> 
> We currently have a number of ksh scripts that we would like to port to perl
> and I was wondering whether anybody knew of any automated methods for doing
> this conversion.

There is no automatic conversion program.  Why not, you ask?
Because Perl doesn't depend on the simple pipeline model of
ksh, and it doesn't have to throw absolutely everything out to
the OS and external programs.  So, in order to really benefit
from this conversion, one needs to learn enough Perl to know
what built-ins are available, and how best to use them.  If
you've been doing shell programming for a while, I would
recommend that you read "Learning Perl" or "Programming Perl",
and then re-write each ksh script.

David
-- 
David Cassell, OAO                     cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician


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

Date: 8 Nov 1999 19:47:08 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: Q: digit-wise number comparisons ?
Message-Id: <8079bs$e56$1@pegasus.csx.cam.ac.uk>

M.J.T. Guy <mjtg@cus.cam.ac.uk> wrote:
>
>But a maximal set is merely one that cannot be extended  -  there can
>exist larger sets.   In particular the sets "sum of digits congruent to
>x mod 10" are maximal and of size N/10.
>
>Whether those are actually the largest maximal sets I don't know  -
>given the slippery nature of coding theory, I rather doubt it.

Actually, I was wrong there.   It's easy to see that a maximal set has at
most N/10 members.

Given a maximal set, every number is either in the set or is a neighbour
of a member of the set (else it could be added to the set).    A number
which is not in the set is adjacent to at most 6 numbers, since each
such member must be obtained by changing a different digit position.
But each set member has 54 non-member neighbours, so there are at
least 9 times as many non-members as members, giving a size of at most
N/10.


Mike Guy


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

Date: Mon, 08 Nov 1999 22:48:31 GMT
From: gqc2017@my-deja.com
Subject: running dos command from perl
Message-Id: <807jvu$nja$1@nnrp1.deja.com>

Hi, how do I execute the following dos command from perl

postmail -t -Hcarbonmedia.net adam\@carbonmedia.com < myfile.txt


Thank you all!!


Sent via Deja.com http://www.deja.com/
Before you buy.


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

Date: Thu, 04 Nov 1999 08:27:41 +0000
From: Mayer Tamas <tmayer@econet.hu>
Subject: Re: Running perl on NT
Message-Id: <3821437D.68DA71A1@econet.hu>

Tim Curry wrote:
> 
> I am running a very simple perl script on an NT machine. I have installed
> perl and changed my permissions of the perl file. When I execute my form,
> the perl script is called. The perl script executes ok in a DOS shell, but
> when internet explorer executes it it simply writes the perl script to the
> window.
> 
> Thanks for your help.

Maybe you forgot to set the web server to handle perl scripts. 
And if you opened the script as a file from the browser, then you will
get the file as a text. :-) In that case set up a web server on your
machine and do the appropriate settings.

Tamas


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

Date: Mon, 8 Nov 1999 12:39:51 -0800
From: Larry Rosler <lr@hpl.hp.com>
Subject: Re: sizeof($myvar) in perl?
Message-Id: <MPG.1290d4f4db35060298a1c3@nntp.hpl.hp.com>

In article <3826D496.2B562B8A@ife.ee.ethz.ch> on Mon, 08 Nov 1999 
14:48:06 +0100, Alex Rhomberg <rhomberg@ife.ee.ethz.ch> says...

 ...

> $_ = 1;
> $_ = "1".$_;  #string 11
> $_ += 10;     #integer 11

If these are intended sequentially, it would be 21.

> $_ += 10.0    #double 11.0

And this would be 31.

But that is not why I write this.

I haven't looked into perl internals much, but I think there is no 
distinction at all between an integer 11 and a double 11.0 .  There is a 
distinction between a number and a string, but not between flavors of 
numbers.  All are stored as doubles.  Yes, no?

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


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

Date: Mon, 08 Nov 1999 21:22:18 GMT
From: kragen@dnaco.net (Kragen Sitaker)
Subject: Re: sizeof($myvar) in perl?
Message-Id: <eaHV3.58315$23.2198551@typ11.nn.bcandid.com>

In article <MPG.1290d4f4db35060298a1c3@nntp.hpl.hp.com>,
Larry Rosler  <lr@hpl.hp.com> wrote:
>I haven't looked into perl internals much, but I think there is no 
>distinction at all between an integer 11 and a double 11.0 .  There is a 
>distinction between a number and a string, but not between flavors of 
>numbers.  All are stored as doubles.  Yes, no?

No; an integer is an IV, while a double is just an NV.
-- 
<kragen@pobox.com>       Kragen Sitaker     <http://www.pobox.com/~kragen/>
Tue Nov 02 1999
6 days until the Internet stock bubble bursts on Monday, 1999-11-08.
<URL:http://www.pobox.com/~kragen/bubble.html>


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

Date: Mon, 08 Nov 1999 21:13:09 GMT
From: kragen@dnaco.net (Kragen Sitaker)
Subject: Re: Software package for creating dynamic web pages from multiple data sources
Message-Id: <F1HV3.58307$23.2196458@typ11.nn.bcandid.com>

In article <19991108130640.02719.00001850@ng-ce1.aol.com>,
Phoenixl <phoenixl@aol.com> wrote:
>I've developed a software package which allows a developer to create web pages
>incorporating
>data from one or more data sources, e.g. database, XML objects, other web
>sites, etc, or dynamically generated data.  The pages can be
>automatically constructed according user needs or preferences, e.g.
>layout, language, disability accomodations, information requirements, etc.
>
>More information is at:
>
>    http://members.aol.com/phoenixl/template-processor
>
>The best place to start is with the README.html file.

Cool.  How does it compare to e.g. PHP, Zope, MetaHTML, EmbPerl, etc.?
-- 
<kragen@pobox.com>       Kragen Sitaker     <http://www.pobox.com/~kragen/>
Tue Nov 02 1999
6 days until the Internet stock bubble bursts on Monday, 1999-11-08.
<URL:http://www.pobox.com/~kragen/bubble.html>


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

Date: Mon, 8 Nov 1999 14:04:17 -0500 
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: splitting, without losing the thing you split with
Message-Id: <x3y3dugst3m.fsf@tigre.matrox.com>


eric@fruitcom.com (Eric Smith) writes:

> I want to specify the object to split with.
> say /^\.\w\w\s/
> viz. a full-stop at the beginning of the line followed by two word characters,
> followed by a space.
> 
> Now I would like the elements of the array resulting from this split to
> _include_ the \w\w, I do not waht to lose these.   On the other hand I do
> not just want to match any full-stop at the start of a line, only those
> succeeded by \w\w.
> 
> Is there a way?

Yep. You could use a zero-width positive lookahead assertion (check
perlre for more info).

Something like:
	@arr = split /^\.(?=\w\w\s)/ => $str;

HTH,
--Ala



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

Date: 8 Nov 1999 20:27:14 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: tutorial or help on HTML parser
Message-Id: <807bn2$fg3$1@gellyfish.btinternet.com>

On Mon, 08 Nov 1999 07:12:18 -0800 Philippe wrote:
> Hello,
> 
> I want to generate the TOC(table of content) of HTML documents from the
> 'H' tags, viz <H1>, <H2>, <H3>, ...
> 
> Of course, I could use regular exp to do this, but as there is the
> HTML::parser and XML::parser, it's better to learn how to use them.
> 
> Could anyone prodive an URL where I could find an clear explanation,
> because I haven't really understood how to use the start, end, text
> method. Actually, if somebody could just show how to extract the text
> content between some tag, it would be sufficient.
> 

You could do worse than search this group on Deja news for posts which
mention HTML::Parser - I posted a couple of examples in the last few
weeks - given sufficient tuits I'll stick em together on a page sometime
with some explanatory text.

/J\
-- 
Jonathan Stowe <jns@gellyfish.com>
<http://www.gellyfish.com>
Hastings: <URL:http://dmoz.org/Regional/UK/England/East_Sussex/Hastings>


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

Date: Mon, 08 Nov 1999 14:38:53 -0800
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: tutorial or help on HTML parser
Message-Id: <382750FD.676269EF@mail.cor.epa.gov>

Philippe wrote:
> 
> Hello,

Bonjour,

> I want to generate the TOC(table of content) of HTML documents from the
> 'H' tags, viz <H1>, <H2>, <H3>, ...
> 
> Of course, I could use regular exp to do this, but as there is the
> HTML::parser and XML::parser, it's better to learn how to use them.

Yes.  A very good attitude.  Regexes will not do the level of
parsing one needs to handle all the potential problems in
legal HTML.  See the FAQ for some discussion on this.
 
> Could anyone prodive an URL where I could find an clear explanation,
> because I haven't really understood how to use the start, end, text
> method. Actually, if somebody could just show how to extract the text
> content between some tag, it would be sufficient.

I would recommend that you search the archives of this newsgroup
for the past three weeks for the name Jonathan Stowe.  He has
written several examples using HTML::Parser, and those examples
ought to be enough to get you started.

David
-- 
David Cassell, OAO                     cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician


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

Date: Mon, 08 Nov 1999 14:36:05 -0800
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Web based email program
Message-Id: <38275055.582A5790@mail.cor.epa.gov>

Bert de Vries wrote:
^ 
^ In article <7uv2tr$bm7$1@nnrp1.deja.com>,
^   bababozorg@aol.com wrote:
^ > Hi
^ >
^ > does anyone know a good perl/cgi webbased email program like
^ > yahoo/hotmail?
^ > the program should ables me to sign up for email address online.
^ > i am on a vitrual server.
^ > i have checked the programs like atdot or mailman but they are just a
^ > pop3 checker, i think they dont able me to create an email address.

^ I think that you will find what you're lookinfg for at www.ebizmail.com

If you can afford it.  Nowhere at their website do they tell
you how much they are going to charge you.  Of course, if you
want to run a service the size of Yahoo, you really ought to
consider hiring as many programmers and sysadmins as Yahoo has.

David
-- 
David Cassell, OAO                     cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician


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

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 99)
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: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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 V9 Issue 1322
**************************************


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