[13716] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1126 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Oct 20 06:07:45 1999

Date: Wed, 20 Oct 1999 03:05:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <940413907-v9-i1126@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Wed, 20 Oct 1999     Volume: 9 Number: 1126

Today's topics:
    Re: (PERL/XML):Subroutine access by Reference. (Eric Bohlman)
    Re: (PERL/XML):Subroutine access by Reference. (Arved Sandstrom)
    Re: (PERL/XML):Subroutine access by Reference. (Christopher R. Maden)
    Re: .htaccess <gellyfish@gellyfish.com>
    Re: .htaccess <jjyooi@dcs.qmw.ac.uk>
    Re: A simple question about Mail::Send <jphil@act.oda.fr>
    Re: A simple question about Mail::Send <gellyfish@gellyfish.com>
        Card shuffling <msaari@tukki.cc.jyu.fi>
    Re: Card shuffling (Abigail)
    Re: Card shuffling <msaari@tukki.cc.jyu.fi>
    Re: Comments in Perl (Abigail)
    Re: Further Musings <gellyfish@gellyfish.com>
    Re: Newbie - Help on installing perl <abarb@nmg.fr>
    Re: OT: Newsreader? a.k.a Re: Ignore the idiots (H. Merijn Brand)
    Re: PerlScript for ASP installation problem <devx@hotmail.com>
        Problems adding to and deleting from an array <mb1010@hotmail.com>
        problems with proxy protocol sceme <Karsten.Priegnitz@stud.fh-hannover.de>
    Re: Program to use cgi with out a server? lil help <c4jgurney@my-deja.com>
    Re: Pseudo Hashes <scott@salmon.ltd.uk>
    Re: SGML/HTML parsing tool (Christopher R. Maden)
    Re: Want to CGI for checking Domain name at Internic <gellyfish@gellyfish.com>
    Re: Writing an IMAP Client (I.J. Garlick)
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

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

Date: 20 Oct 1999 09:14:34 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: (PERL/XML):Subroutine access by Reference.
Message-Id: <7uk15q$553$1@nntp3.atl.mindspring.net>

Subalakshmi GanapathiRaman (sganapat@cisco.com) wrote:
: "Modification of a read-only value attempted at Expat.pm line 126"

What Perl version are you using?  I believe there's a bug in 5.004 that 
can cause this to happen, particularly if you're also using DBI.



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

Date: Wed, 20 Oct 1999 06:50:39 -0300
From: Arved_37@chebucto.ns.ca (Arved Sandstrom)
Subject: Re: (PERL/XML):Subroutine access by Reference.
Message-Id: <Arved_37-2010990650400001@dyip-13.chebucto.ns.ca>

In article <7uk15q$553$1@nntp3.atl.mindspring.net>, ebohlman@netcom.com
(Eric Bohlman) wrote:

> Subalakshmi GanapathiRaman (sganapat@cisco.com) wrote:
> : "Modification of a read-only value attempted at Expat.pm line 126"
> 
> What Perl version are you using?  I believe there's a bug in 5.004 that 
> can cause this to happen, particularly if you're also using DBI.

Or to phrase that slightly differently, unless you have the patched 2.26
version of XML::Parser, or the 2.27 (latest) version of XML::Parser, you
will sometimes see the dreaded line 126 error if you are also using 5.004
Perl. :-)

Arved Sandstrom


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

Date: Wed, 20 Oct 1999 02:56:36 -0700
From: crism@exemplary.net (Christopher R. Maden)
Subject: Re: (PERL/XML):Subroutine access by Reference.
Message-Id: <crism-2010990256360001@pm3b-12.meer.net>

In article <380D451B.A2947208@cisco.com>, Subalakshmi GanapathiRaman
<sganapat@cisco.com> wrote:

> --------------53C8B6301F431C8D4271AB7C
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit

One copy of your post was sufficient.  Sending two was unnecessary,
especially since one was unreadable.

> Hi everybody,
> 
> Kindly treat this as URGENT.

Sure thing, Mr. GanapathiRaman sir!  We'll all drop whatever we're doing
to answer your URGENT question!  Oh, wait... I'm reading this on my own
time at 3 a.m.  USENET is a voluntary community; if your question is
urgent, you should probably contact a paid consultant.

Or perhaps urgently read the documentation before posting to a newsgroup,
where your post will percolate across the world at the whim of the news
servers involved and replies will similarly drift back, originating as the
readers of this newsgroup see fit.

> I would like to know the best way in which I can correctly and easily
> identify a subroutine called by  reference (during run time).
> Do we have a perl debugger for Unix systems (Solaris) as we have
> (ActivePerl debugger) for NT boxes ?

Yes.  RTFM.

> Related Problem :
> 
> Given an Input XML file, that is to be parsed and subsequently, for the
> DOM (Document Object Model Tree)  to be built, the 'parse'
> subroutine in the 'XML::Parser.pm' package is invoked.
> 
> This 'XML::Parser' being a non-validating parser, inturn calls the
> 'setHandler' subroutine, in
> the Validating Parser package 'XML::Parser::Expat.pm'.
> In this function, another handler subroutine is called by reference. In
> this case it gives the following error :
> 
> "Modification of a read-only value attempted at Expat.pm line 126"
> 
> I understand that this is the outcome of attempting to assign/write
> something to a constant. But I'm
> not quite sure as to how this problem originates with a valid XML input
> file on Solaris, while the same
> file is successfully parsed by the equivalent Expat.pm in NT.

The problem is on line 23.

For a more specific answer, you need to tell us the version of Perl, the
version of XML::Parser, and give us an example of the code you're using to
invoke XML::Parser.

-Chris
-- 
Christopher R. Maden, Solutions Architect
Exemplary Technologies
One Embarcadero Center, Ste. 2405
San Francisco, CA 94111


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

Date: 20 Oct 1999 10:06:54 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: .htaccess
Message-Id: <380d862e_1@newsread3.dircon.co.uk>

Johnny 'Loopy' Ooi <jjyooi@dcs.qmw.ac.uk> wrote:
> Eric The Read wrote:
>> 
>> kragen@dnaco.net (Kragen Sitaker) writes:
>> This is why proper indexing is important, and why people get paid
>> inordinate amounts of money to create indexes for manuals-- it's a lot
>> more complicated than just grepping the text for words and corresponding
>> page numbers.  At least, if it's done right.
>> 
> 
> Uhhh... Aren't we diverging off the subject a little? This thread was
> about .htaccess files not about indexing manuals. ;-)
> 

I dont see that it matters anymore - you have your answer.

/J\
-- 
"If I was going to wear a wig I'd choose something a lot better than this"
- Barry Norman


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

Date: Wed, 20 Oct 1999 10:09:24 +0100
From: Johnny 'Loopy' Ooi <jjyooi@dcs.qmw.ac.uk>
Subject: Re: .htaccess
Message-Id: <380D86C4.745ECFE@dcs.qmw.ac.uk>

Jonathan Stowe wrote:
> 
> Johnny 'Loopy' Ooi <jjyooi@dcs.qmw.ac.uk> wrote:
> >
> > Uhhh... Aren't we diverging off the subject a little? This thread was
> > about .htaccess files not about indexing manuals. ;-)
> >
> 
> I dont see that it matters anymore - you have your answer.

Just trying to maintain the spirit of things -- and failing miserably!
;-)

-- 
Johnny Ooi. Aliases: Loopy, Tuxedo Mask, Quote Master.....
E-Mail		: jjyooi@dcs.qmw.ac.uk or jjyooi@yahoo.com
WWW		: http://www.dcs.qmw.ac.uk/~jjyooi/
ICQ No          : 6155774

"Stay sane guys!"

===============================================================


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

Date: 20 Oct 1999 10:06:03 +0200
From: J-P Theberge <jphil@act.oda.fr>
Subject: Re: A simple question about Mail::Send
Message-Id: <87emeq1mok.fsf@godzilla.oda.fr>

brian@smithrenaud.com (brian d foy) writes:

> In article <m1aepftl8e.fsf@halfdome.holdit.com>, merlyn@stonehenge.com (Randal L. Schwartz) wrote:
> 
> >>>>>> "J-P" == J-P Theberge <jphil@act.oda.fr> writes:
> >
> >J-P> Hi,
> >J-P> With Mail::Send, how can I change the From field?
> >
> >Invoke "su" before calling your program.
> 
> or be a trusted user, which might be a good thing on a completely
> controlled box.
 
The problem is that I want to mail from a CGI script.  I just dont
want the mail to be from 'nscape' (the netscape web-server default
server) but from somebody else (who dont even have an account on the
web server)

Changing the 'From:' field of a mail message is not supposed to be
something complex.

Do you have a mail module (other than Mail::Send) to propose to me?

Thanks

-jp


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

Date: 20 Oct 1999 10:38:47 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: A simple question about Mail::Send
Message-Id: <380d8da7_1@newsread3.dircon.co.uk>

J-P Theberge <jphil@act.oda.fr> wrote:
> brian@smithrenaud.com (brian d foy) writes:
> 
>> In article <m1aepftl8e.fsf@halfdome.holdit.com>, merlyn@stonehenge.com (Randal L. Schwartz) wrote:
>> 
>> >>>>>> "J-P" == J-P Theberge <jphil@act.oda.fr> writes:
>> >
>> >J-P> Hi,
>> >J-P> With Mail::Send, how can I change the From field?
>> >
>> >Invoke "su" before calling your program.
>> 
>> or be a trusted user, which might be a good thing on a completely
>> controlled box.
>  
> Changing the 'From:' field of a mail message is not supposed to be
> something complex.
> 
> Do you have a mail module (other than Mail::Send) to propose to me?
> 

You appear to have lost the bit of Randal's post where he referred to :

   <http://search.cpan.org/search?mode=module&query=mail>


HTH

/J\
-- 
"Mark my words, sex is never enough. Sooner of later she'll want a
dishwasher" - Policeman, City Central


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

Date: 20 Oct 1999 12:10:39 +0300
From: Mikko Saari <msaari@tukki.cc.jyu.fi>
Subject: Card shuffling
Message-Id: <7uk0uf$os6@tukki.cc.jyu.fi>

I need a perl script to handle decks of cards. My first and most obvious
problem is shuffling, a problem which has bothered me previously. How do I
arrange an array in random order? 

-- 
-- 
    for more info                                            msaari
    finger msaari@tukki.jyu.fi                               @jyu.fi
    262          "quantum physics: the dreams that stuff is made of"


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

Date: 20 Oct 1999 04:30:53 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Card shuffling
Message-Id: <slrn80r2ts.fji.abigail@alexandra.delanet.com>

Mikko Saari (msaari@tukki.cc.jyu.fi) wrote on MMCCXLI September MCMXCIII
in <URL:news:7uk0uf$os6@tukki.cc.jyu.fi>:
## I need a perl script to handle decks of cards. My first and most obvious
## problem is shuffling, a problem which has bothered me previously. How do I
## arrange an array in random order? 


Your zeroth and most serious problem is your inability to read.

If you can't read the faq, you wouldn't be able to read my answer either.



Abigail
-- 
srand 123456;$-=rand$_--=>@[[$-,$_]=@[[$_,$-]for(reverse+1..(@[=split
//=>"IGrACVGQ\x02GJCWVhP\x02PL\x02jNMP"));print+(map{$_^q^"^}@[),"\n"


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: 20 Oct 1999 12:40:16 +0300
From: Mikko Saari <msaari@tukki.cc.jyu.fi>
Subject: Re: Card shuffling
Message-Id: <7uk2m0$2n@tukki.cc.jyu.fi>

Abigail <abigail@delanet.com> wrote:
> Your zeroth and most serious problem is your inability to read.
> If you can't read the faq, you wouldn't be able to read my answer either.

And where this faq might be found? I tried looking around in the perl.com
but I didn't find any help. 


-- 
-- 
    for more info                                            msaari
    finger msaari@tukki.jyu.fi                               @jyu.fi
    262          "quantum physics: the dreams that stuff is made of"


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

Date: 20 Oct 1999 03:46:27 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Comments in Perl
Message-Id: <slrn80r0af.fji.abigail@alexandra.delanet.com>

Alan Curry (pacman@defiant.cqc.com) wrote on MMCCXLI September MCMXCIII
in <URL:news:kteP3.20940$E_1.1162389@typ11.nn.bcandid.com>:
^^ In article <slrn80qon9.fji.abigail@alexandra.delanet.com>,
^^ Abigail <abigail@delanet.com> wrote:
^^ >Mandeep Singh (singh_mandeep@jpmorgan.com) wrote on MMCCXXXIX September
^^ >MCMXCIII in <URL:news:380B3E83.93FFDD75@jpmorgan.com>:
^^ >== 
^^ >== Is there a way to do C/C++/Java like comments?
^^ >== 
^^ >== /*
^^ >== * sgsfgfdgfd
^^ >== * ghjjghjghj
^^ >== */
^^ >
^^ >   #
^^ >   # sgsfgfdgfd
^^ >   # ghjjghjghj
^^ >   #
^^ 
^^ my ($width, /*$depth,*/ $height);

my ($width, #$depth,
$height);

One byte less on Unix, same amount of bytes on Windows.



Abigail
-- 
perl -wle\$_=\<\<EOT\;y/\\n/\ /\;print\; -eJust -eanother -ePerl -eHacker -eEOT


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


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

Date: 20 Oct 1999 10:03:30 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Further Musings
Message-Id: <380d8562_1@newsread3.dircon.co.uk>

Wyzelli <wyzelli@yahoo.com> wrote:
> Craig Berry <cberry@cinenet.net> wrote in message
> news:s0p7q2hcr0166@corp.supernews.com...
>> Wyzelli (wyzelli@yahoo.com) wrote:
>> : Craig Berry <cberry@cinenet.net> wrote in message
>> : news:s0l5n6snr0186@corp.supernews.com...
> 
>> : localtime et al returns the number of years since the epoch, to which we
>> : add 1900 to ensure y2k accuracy.
>>
>> Not true.  On Unix-ish systems, the epoch is midnight Jan 1 1970 UTC.
>> localtime returns years since 1900.  Big difference.
> 
> I guess that varies by system, as I recall that on Mac's the epoch is a
> different date again, so that further confuses things!
> 

I dont see it confusing ... the return of localtime is the same whatever the
system in question considers the dawn of time ...

/J\
-- 
"Mr Creutzfeldt and Mr Jakob: No-one had ever heard of these two eminent
medical men until someone had the


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

Date: Wed, 20 Oct 1999 11:41:24 +0200
From: BARBET Alain <abarb@nmg.fr>
To: Noira Hadi <r42317@email.sps.mot.com>
Subject: Re: Newbie - Help on installing perl
Message-Id: <380D8E43.75CDE999@nmg.fr>

Noira Hadi a écrit :

> I am installing perl on a Sun machine running Solaris 2.6. I encountered
> error message below. Need to know where I can get the C compiler? And do
> I have to re-install the perl again?
>
> Use which C compiler? [cc]
>
> Checking for GNU cc in disguise and/or its version number...
>
> *** WHOA THERE!!! ***
>     Your C compiler "cc" doesn't seem to be working!
>     You'd better start hunting for one and let me know about it.
>
>  regards,
> hadi

If you want build (compile) a new version of Perl, you need to install a C
compiler.
(But for install a C compiler, you need a C compiler ? No, there is
different packages already in bin)

Same thing for Perl. If you don't want compile your new Perl, install a
package with Perl already compile for Sun machines.

--
Alain BARBET
abarb@nmg.fr - http://www.citeweb.net/alian




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

Date: 19 Oct 1999 15:43:21 GMT
From: h.m.brand@hccnet.nl (H. Merijn Brand)
Subject: Re: OT: Newsreader? a.k.a Re: Ignore the idiots
Message-Id: <8E64B2E4DMerijn@192.0.1.19>

>>> Since I started doing that, my clpm experience has improved a lot. It

Mine improved mainly by c.l.p.moderated ...

>>> was definitely worth the change of news reader.
>>
>> OK, you've got my curiosity piqued. What newsreader do you use?
>>
>
>slrn apparently ...

X-news (for Window$ systems) has quite good scoring methods using
PCRE (Perl Compatible Regular Expressions), which filters about 50%
of the articles of this group.

That it uses PCRE made it suddenly on-topic ;-)

--
H.Merijn Brand
using perl5.005.03 on HP-UX 10.20, HP-UX 11.00, AIX 4.2, AIX 4.3,
	   DEC OSF/1 4.0 and WinNT 4.0, often with perlTk 800.015
ftp://ftp.funet.fi:/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/
Member of Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)


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

Date: Wed, 20 Oct 1999 09:59:52 +0100
From: "DeveloperX" <devx@hotmail.com>
Subject: Re: PerlScript for ASP installation problem
Message-Id: <7uk08d$esf$1@starburst.uk.insnet.net>

>I need to replace most of the hardware on my bicycle.

It sounds like you've got a bit of a problem there, perhaps if you explained
the problem I'd be more able to help.

-nuff said

-tony




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

Date: 20 Oct 1999 19:45:27 GMT
From: "M B" <mb1010@hotmail.com>
Subject: Problems adding to and deleting from an array
Message-Id: <01bf1ac8$aa72e0e0$a7040a0a@pchand.eil.co.in>

I am unable to add to an array and delete from an array. I'm
adding at the end of the array and deleting from the beginning
of the array (first-in-first-out).

Everytime I add to the array:
- the array length increases by 2 and not 1
- the data is in the odd-numbered offset of the array and not at
every offset.

You can use the program below to check this out.

@array = ();			# Initialize array
$length = @array;		# Get length of array
print "Length = $length\n";	# Prints 0


$x = "abc def";			# Add string to end of array
$array [@array + 1] = $x;
$length = @array;
print "Length = $length\n";	# Prints 2 (and not 1)
$f = @array[0];
print "1th elem: $f\n";		# Prints nothing
$f = @array[1];
print "1th elem: $f\n";		# Prints $x


$y = "ghi jkl";
$array [@array + 1] = $y;
$length = @array;
print "Length = $length\n";	# Prints 4 (and not 2)
$f = @array[1];
print "1th elem: $f\n";		# Prints $x at offset 1 (not 0)
$f = @array[3];
print "3rd elem: $f\n";		# Prints $y at offset 3 (not 1)


$z = "mno pqr";
$array [@array + 1] = $z;
$length = @array;
print "Length = $length\n";	# Prints 6 (and not 3)
$f = @array[1];
print "1th elem: $f\n";		# Prints $x at offset 1 (not 0)
$f = @array[3];
print "3rd elem: $f\n";		# Prints $y at offset 3 (not 1)
$f = @array[5];
print "5th elem: $f\n";		# Prints $z at offset 5 (not 3)


# Now delete $x which is at the beginning of the array

@array = @array [1, $length - 1];
$length = @array;
print "Length = $length\n";	# Prints 2
$f = @array[0];
print "0th elem: $f\n";		# Prints $x (not $y)
$f = @array[1];
print "1st elem: $f\n";		# Prints $z
$f = @array[2];
print "2nd elem: $f\n";		# Prints null string
$f = @array[3];
print "3rd elem: $f\n";		# Prints null string




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

Date: Wed, 20 Oct 1999 10:52:56 +0200
From: "Karsten Priegnitz" <Karsten.Priegnitz@stud.fh-hannover.de>
Subject: problems with proxy protocol sceme
Message-Id: <7ujvmb$beo$1@linux.rz.fh-hannover.de>

hi,

the command:

perl -MLWP::Simple -e 'getprint "http://www.hallo.de/index.htm"'

returns the message:

501 Protocol scheme 'proxy.inform.fh-hannover.de' is not supported
<URL:http://www.hallo.de/index.htm>

who can help?

koem






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

Date: Wed, 20 Oct 1999 08:09:37 GMT
From: Jeremy Gurney <c4jgurney@my-deja.com>
Subject: Re: Program to use cgi with out a server? lil help
Message-Id: <7ujtbp$oi4$1@nnrp1.deja.com>

In article <7ujbng$cdk$1@nnrp1.deja.com>,
  deltren@my-deja.com wrote:
> IS there a program i could use to make my forms work when both the
html
> and cgi are on my computer which isnt a server?
> If not any advise to test out simple cgi programs?

You managed to ask your question without mentioning the magic word Perl
- this is a CGI question and not a perl question and should have been
posted to comp.infosystems.www.authoring.cgi

You can install web server software on a machine which is not a server,
and this is what you'll need to do to get your CGI working.

Jeremy Gurney
SAS Programmer  |  Proteus Molecular Design Ltd.
"What if there were no hypothetical situations?"


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


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

Date: Wed, 20 Oct 1999 09:52:49 +0100
From: "Scott Pritchett" <scott@salmon.ltd.uk>
Subject: Re: Pseudo Hashes
Message-Id: <7ujvu0$4dc$1@lure.pipex.net>


James Tolley <jtolley@bellatlantic.net> wrote in message
news:380C9F9F.A39B169C@bellatlantic.net...
>
>
> Scott Pritchett wrote:
>
> > Can anyone show me an example of a pseudo hash, I heard about them on
the
> > Topaz talk on Perl.com but seem unable to get them to work. It seems
that an
> > element of the array should be accessable by accessing it thru the
reference
> > to the hash of field name/indices, but how?
> >
> > My test code is :-
> >
> > $hx={'beer'  =>  1, 'snack' =>  2, 'logs'  =>  3, 'last'  =>  4};
> > @ar=(\%hx, qw( crisps nuts balls beer crap ));
> > print $ar    something or other;
> >
>
> You're creaing $hx, then trying to use %hx...
> also, you need a recent version of perl (>5.005?) to use this.
> There is ample good coverage of pseudo hashes in Object Oriented Perl -
> a good read! - or perldoc has info on this, if your version
> supports this datatype.
>
I'm using 5.005_003 and I've just ordered that book coincidentally today.
Can you tell me what I need to do to get it working in the meantime?





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

Date: Wed, 20 Oct 1999 02:43:16 -0700
From: crism@exemplary.net (Christopher R. Maden)
Subject: Re: SGML/HTML parsing tool
Message-Id: <crism-2010990243160001@pm3b-12.meer.net>

In article <7uitna$2vm$1@nnrp1.deja.com>, kiosk62279@my-deja.com wrote:
> Recently I've found myself writing a lot of scripts that basically take
> an HTML page that's up on the web somewhere, read in it's contents,
> parse out the HTML tags, and throw everything into a database.

Cool.  I had an idea last week for a roundish thing, a sort of disk, and
if you put a bar between two of them you could move stuff easily. 
Seriously:

> What I want to know is:
> 1.  Has anyone else ever found themselves in the situation I describe?
> (i.e., needing to parse a lot of HTML files and extra data from
> different table cells)
> 
> 2.  If so, what tools did you use?  What would you recommend?  What
> tool did you find that was easiest to adapt to different purposes
> (e.g., sometimes I only want the data from TD's that are on odd-
> numbered rows, etc.)

Have you tried HTML::Parser for parsing HTML?  Or tried 'perl -MCPAN -e
shell' and searching for HTML or SGML there?

-Chris
-- 
Christopher R. Maden, Solutions Architect
Exemplary Technologies
One Embarcadero Center, Ste. 2405
San Francisco, CA 94111


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

Date: 20 Oct 1999 09:16:28 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Want to CGI for checking Domain name at Internic
Message-Id: <380d7a5c_1@newsread3.dircon.co.uk>

David Efflandt <efflandt@xnet.com> wrote:
> On Wed, 20 Oct 1999 09:50:19 +0700, Akkadate Siripongwattana
> <akkadate.s@tfb.co.th> wrote:
>>I creating my homepage.
>>I want have from for checking Domain name.
>>How can I do it?
>>Please,Help
> 
> http://thunder.prohosting.com/pub/whois.cgi (source is whois.txt}.  I
> think there may be a whois module, but this simply uses the shell command
> with backticks from a CGI.pm table form.
> 

I posted a small ( ~15 lines ) whois client a couple of months ago :

  <http://www.deja.com/getdoc.xp?AN=475968949&fmt=text>

/J\
-- 
"The Tory Party is like a wonky shopping trolley - it pulls to the
left, it pulls to the right, but you just can't get it to go forward"
- John Prescott


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

Date: Wed, 20 Oct 1999 07:51:50 GMT
From: ijg@connect.org.uk (I.J. Garlick)
Subject: Re: Writing an IMAP Client
Message-Id: <FJw5uE.4H9@csc.liv.ac.uk>

In article <7u7mba$qdt$1@nnrp1.deja.com>,
howitgolook <howitgolook@my-deja.com> writes:
> Hi all,
> 
> I wish to write an IMAP (Webmail) client a-la-Hotmail, using Perl.
> I will be communicating with a Cyrus IMAP server.

You biggest problem is how your going to tackle the IMAP connectivity,
most of the pre-existing IMAP related modules are still in their infancy.
I chose the Mail::Cclient one, but it's not everyones cup of tea. Do a
search on CPAN for IMAP to get the others.

> Is there anywhere I can get perl code to get me started?

Probably. If you want to learn it's best to do it yourself though. If you
just want it to work www.perl.org may be a good starting point to search
for existing scripts.

> What modules will I need?

CGI.pm, all of the Mail and MIME related modules. You wont want to use
them all but you need to understand the differences so you can decide
which ones you do want to use.

> Any advice for this sort of project?

Yes. Read all the RFC's on Mail and MIME that you can lay your hands on.
Understand mail inside out.
Start small and add features, don't try to do it all at once.
Design how you are going to make it scalable.
Decide if you are going to give users real accounts or pop only accounts.
The later may involve hacking some serious amounts of complicated unix
stuff. (noteably sendmail and imap daemons).

-- 
Ian J. Garlick
ijg@csc.liv.ac.uk

Toddlers are the stormtroopers of the Lord of Chaos.



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

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 1126
**************************************


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