[11254] in Perl-Users-Digest
Perl-Users Digest, Issue: 4854 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Feb 9 11:07:24 1999
Date: Tue, 9 Feb 99 08:02:50 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 9 Feb 1999 Volume: 8 Number: 4854
Today's topics:
Re: Perl 'zine <carvdawg@patriot.net>
Re: Perl 'zine <jjarrett@ecpi.com>
Perl LWP and proxy authentication <edwin@mindless.com.without.these.four.words>
Re: Perl, PHP, Python, ColdFusion, MS Frontpage, which dzuy@my-dejanews.com
Problems with installation of Perl on LINUX box <jimreidford@btinternet.com>
Re: Program needs compactification <rra@stanford.edu>
Q: embed m-threaded perl in c/c++? <makler@man.torun.pl>
Re: Rounding for Euro currency (Randal L. Schwartz)
Re: send form to SMTP server <Tony.Curtis+usenet@vcpc.univie.ac.at>
Re: send form to SMTP server dragnovich@my-dejanews.com
Re: sending mail from nt with perl 4.x...?? dragnovich@my-dejanews.com
Solaris 7, perl-5.005_02 and Net::Daemon (Willi Burmeister)
Win32: Reading Audio CD TOC with perl <thorsten@sauerland.de>
Re: Would love UNIX program that could read Excel binar (Volker Borchert)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 09 Feb 1999 05:37:14 +0000
From: Marquis de Carvdawg <carvdawg@patriot.net>
Subject: Re: Perl 'zine
Message-Id: <36BFC98A.7503AA33@patriot.net>
What I was hoping for, as I said, was something along the lines of
TPJ...but more often. I like the format of TPJ and the Linux Journal,
in that things are explained and working code is provided.
A couple of regular sections I'd like to see are:
Perl on Unix/Linux
Perl on Win32
CGI (various platforms)
Background info, examples, projects, etc
If there is an interest, Perl on other platforms (Mac, etc)
So far, I've received emails from many who would like to
receive the e-zine, but none who feel they can contribute.
If someone is willing to email me articles, or URLs to web pages
where they've posted the information, I'll compile it into an e-zine
and post it on the web via my site, with a notice here.
Thanks...
Tom Rouillard wrote:
> I'm interested. I'm not an expert at Perl, but I wish I was. There's so much
> to learn and the Camel can sometimes step way over my head. I never learned
> C. I stopped programming at PL1 and went into writing other things --
> fiction, poetry, and finally news stories (reporter/editor for 7 years).
>
> Now I find myself the manager of a newspaper web site and I'm learning to
> program all over again. Except everything is different now. Perl has been
> pretty easy to learn, but sometimes I feel like I'm flying blind or doing
> things the hard way.
>
> I'd love to contribute, but I'd love it more if I could learn something.
>
> Let me know.
>
> Tom
>
> ------------------------------------------------
> Tom Rouillard | tom@modbee.com
> Online News Manager | tomrou@ainet.com
> The Modesto Bee | http://www.modbee.com
>
> ----------
> In article <36BF5D1F.CC23FFF6@patriot.net>, Marquis de Carvdawg
> <carvdawg@patriot.net> wrote:
>
> > Well...I'd like to feature things much the same way as TPJ..and have
> > articles for all versions of Perl, not just those on Unix. I use Perl on
> > win32 right now...I'd like to feature system administration scripts,
> > etc, for all platforms. CGI, etc...
> >
> > John T. Jarrett wrote:
> >
> >> This sounds like fun. When do we start?
> >>
> >> John
> >>
> >> Marquis de Carvdawg wrote:
> >>
> >> > Just throwing this out to everyone...
> >> >
> >> > I really enjoy TPJ...when it comes out. I get digests from
> >> > the ActiveState listservers, and I read the groups.
> >> >
> >> > Is there any desire for a monthly 'zine along the lines of TPJ?
> >> > I was thinking that it could start out online, and then possibly
> >> > go to soft-cover in the future. I would be glad to not only
> >> > subscribe to such a thing, but also contribute...
> >> >
> >> > I am asking this b/c I have added a 'Perl Corner' to an e-letter
> >> > that I edit, and it's been a real hit with newbies and more experienced
> >> > Perl programmers, as well...
> >> >
> >> > Carv
> >
> >
> >
------------------------------
Date: Tue, 09 Feb 1999 09:29:07 -0500
From: "John T. Jarrett" <jjarrett@ecpi.com>
To: Marquis de Carvdawg <carvdawg@patriot.net>
Subject: Re: Perl 'zine
Message-Id: <36C04633.3EC8EB2D@ecpi.com>
Also, when it came in print, we could have a page for Perl Monger groups and their
activities; a page for the Perl Institute with current projects, a project
highlight, and request for project leaders; a sidebar on the future of perl. As
far as Perl Institute's trying to get Perl better recognized, I think an effort
like this would go a tremendous way toward doing that.
Also, I can at least write articles and provide a web-area for putting basic
scripts up onto websites with what-can-go-wrong and why-it-works-or-not, etc.
John
Marquis de Carvdawg wrote:
> What I was hoping for, as I said, was something along the lines of
> TPJ...but more often. I like the format of TPJ and the Linux Journal,
> in that things are explained and working code is provided.
>
> A couple of regular sections I'd like to see are:
>
> Perl on Unix/Linux
> Perl on Win32
> CGI (various platforms)
> Background info, examples, projects, etc
>
> If there is an interest, Perl on other platforms (Mac, etc)
>
> So far, I've received emails from many who would like to
> receive the e-zine, but none who feel they can contribute.
>
> If someone is willing to email me articles, or URLs to web pages
> where they've posted the information, I'll compile it into an e-zine
> and post it on the web via my site, with a notice here.
>
> Thanks...
------------------------------
Date: 9 Feb 1999 09:57:09 GMT
From: Edwin van Geelen <edwin@mindless.com.without.these.four.words>
Subject: Perl LWP and proxy authentication
Message-Id: <8D6879B74Edwinek@news.ing.nl>
Hi,
I'm trying to build a small Perl program, that will get a page from the web
and extract information from it. However, I have to get past a proxy-server
that uses authentication and I can't find information on how to do this.
Does anyone have a simple example-program that does this?
Thanks,
Edwin
------------------------------
Date: Tue, 09 Feb 1999 14:42:40 GMT
From: dzuy@my-dejanews.com
Subject: Re: Perl, PHP, Python, ColdFusion, MS Frontpage, which one for beginner
Message-Id: <79phgu$7dc$1@nnrp1.dejanews.com>
In article <79m950$i4c$1@nnrp1.dejanews.com>,
ghill@n2.net wrote:
> I've been doing alot of reading and a little testing trying to decide what
> language I should commit to.
> I need to interact with all the popular databases without re-inventing the
> wheel (so to speak).
> I'm new to Web Development although I do have lots of xBase programming
> experience, I'm trying to decide from one of the following:
>
> - Cold Fusion (real high, Windows only)
> - MS FrontPage (real high, Windows only)
> - PHP (med high, multiplatform)
> - Python (med high, multiplatform)
> - Perl (high/low, multiplatform)
>
> I do want to end up with a multiplatform product and I know that Perl will run
> on all the popular OS's, it seems like that is the way I should go.
> I've have Perl on my system, and I'm delving into it with the help of
> O'reilly's "Learning Perl". It seems like the learning curve is satisfactory,
> but I'm still very green to it, I just know I like what I see so far.
> BUT do I really need to know Perl to get the jog done efficiently?
You have to know anything real well to get the job done efficiently.
Dzuy
> Please e-mail me at ghill@n2.net
> Thanks in advance.
> Greg Hill
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Tue, 09 Feb 1999 15:55:21 +0000
From: Jim Reidford <jimreidford@btinternet.com>
Subject: Problems with installation of Perl on LINUX box
Message-Id: <36C05A69.369B@btinternet.com>
Hello All,
I don't know if this is the correct ng for this query.
A brief description
Trying to install the latest version of Perl(5.005) and it fails during
the run of the Configure script as it tries the test compile.
Error message
/usr/i486-linux/bin/ld: cannot open -ldl: No such file or directory
I can' compile the test program
(The supplied flags might be incorrect with this C compiler)
Command used
gcc -02 -Dbool=char -DHAS_BOOL -I/usr/local/include -o try
-L/usr/local/lib try.c -lgdbm -ldb -ldl -lm -lc
If someone could shed some light or point me in the direction of a more
suitable ng then I would be grateful
I can obviously supply more info but I did not want to swamp the ng with
the output of Configure.
I have read the INSTALL file but not really being into C and compiling
it's a bit double-dutch. The main reason for requiring the Perl upgrade
is that I want to install INN on my webserver and it won't install
without Perl 5.005
TIA
--
Jim Reidford
--
"Due to financial constraints,
the light at the end of the tunnel
has been turned off until further notice !!"
------------------------------
Date: 09 Feb 1999 02:21:42 -0800
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Program needs compactification
Message-Id: <yld83jnah5.fsf@windlord.stanford.edu>
Jonesy <jonesy@rmi.nospam.net> writes:
> Abigail <abigail@fnx.com> wrote:
>> Uri Guttman (uri@home.sysarch.com) wrote on MCMLXXXVI September MCMXCIII
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Maybe in a parallel universe...
Yes, it's called Usenet. :)
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: 9 Feb 1999 15:00:09 GMT
From: Piotr Klaban <makler@man.torun.pl>
Subject: Q: embed m-threaded perl in c/c++?
Message-Id: <79pihp$2va$1@flis.man.torun.pl>
I know that multithreaded perl development
is in alpha/beta stage, but:
a) is it save to embed mt-perl in c/c++ multithreaded
program? I know that non-threaded perl is not save.
b) is it better to use CPerlObj in C++? Is it MT-Save
even if perl is not compiled with "-DTHREADS"
c) how about perl gethostbyname functions?
Does perl use gethostbyname_r instead of gethostbyname,
and getpwnam_r instead of getpwnam, etc.?
Greetings,
Piotr Klaban
------------------------------
Date: 09 Feb 1999 07:25:31 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Rounding for Euro currency
Message-Id: <m1u2wvr444.fsf@halfdome.holdit.com>
>>>>> "Larry" == Larry Rosler <lr@hpl.hp.com> writes:
Larry> $new = sprintf("%9.2f", int($old*20+.5) /20);
Larry> should do just as well, and somewhat faster. Why pad to a nine-
Larry> character string when all you want is a number?
Well, here's another way. sprintf "%.0f" *rounds*, it doesn't
truncate. (It's %d and int() that *truncate*.) So, let's use
sprintf twice:
$new = sprintf "%.2f", (sprintf "%.0f", $old * 20) / 20;
And that should work for both positive and negative numbers, although
we're going from number to string twice. Ugh. :)
print "Just another Perl sprinter,"
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
------------------------------
Date: 09 Feb 1999 10:41:13 +0100
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: send form to SMTP server
Message-Id: <83ogn3syme.fsf@vcpc.univie.ac.at>
Re: send form to SMTP server, CJ <spam@spam.com>
said:
CJ> I would like to be able to send a form to an
CJ> SMTP server so that it can be emailed after
CJ> being submitted. the smtp server is not the same
CJ> machine that the web server is on.
CJ> does anyone have an example CGI script for this?
Nope. This has nothing to do with CGI.
Did you have a perl question? If you want to send
mail in perl you'll probably be best off using the
modules MIME::Tools and Mail::Send.
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien. | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: Tue, 09 Feb 1999 15:30:42 GMT
From: dragnovich@my-dejanews.com
Subject: Re: send form to SMTP server
Message-Id: <79pkb2$a9k$1@nnrp1.dejanews.com>
Hoo yes .. look for the Active Estate perl FAQ (perlwin32faq4) on this faq
you can see an script that send a mail via a perl script not via sendmail
then if you modify the script you can send anything you want! =-)
attachments, check for server errors on delivering ... etc... there are links
to some premade perl scripts that can help you!
In article <36BF9B74.65556BFB@spam.com>,
CJ <spam@spam.com> wrote:
> I would like to be able to send a form to an SMTP server so that it can
> be emailed after being submitted. the smtp server is not the same
> machine that the web server is on.
>
> does anyone have an example CGI script for this?
>
> apreciated,
> JC.
>
>
------------------------
Juan Carlos Lopez
QDesigns President & CEO
http://www.qdesigns.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Tue, 09 Feb 1999 15:36:17 GMT
From: dragnovich@my-dejanews.com
Subject: Re: sending mail from nt with perl 4.x...??
Message-Id: <79pklg$af4$1@nnrp1.dejanews.com>
Try this !!...
use Net::SMTP;
$smtp = Net::SMTP->new('here.com'); # SMTP server IP or name
$smtp->mail( 'user@here.com' ); # use the sender's address here
$smtp->to('user@there.com'); # recipient's address
$smtp->data(); # Start the mail
# Send the header.
$smtp->datasend("To: user@there.com\n");
$smtp->datasend("From: user@here.com\n");
$smtp->datasend("\n");
# Send the body.
$smtp->datasend("Hello, World!\n");
$smtp->dataend(); # Finish sending the mail
$smtp->quit; # Close the SMTP connection
dont know if this can helps! you!
In article <36BFB7BB.D4D96518@idt.net>,
jamesht <jamesht@idt.net> wrote:
> Hello,
>
> I'm sorry to ask you about this terribly hobbled system, but that's what
> I have to work with.
>
> How does one send mail from nt without using a module?? Are there good
> libraries, or a good reference? All I've ever seen has either been for
> sendmail or for some win32 module...
>
> Thanks in advance,
>
> James
>
>
------------------------
Juan Carlos Lopez
QDesigns President & CEO
http://www.qdesigns.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 9 Feb 1999 12:18:14 GMT
From: wib+usenet@cs.uni-kiel.de (Willi Burmeister)
Subject: Solaris 7, perl-5.005_02 and Net::Daemon
Message-Id: <79p926$13e$1@bossix.informatik.uni-kiel.de>
Hi,
I have some problems compiling Net::Daemon. I'm using perl 5.005_02
on Solaris 7
Here the output of make test
----------------------------------------------------------------------
% make test
PERL_DL_NONLAZY=1 /opt/gnu/bin/perl -Iblib/arch -Iblib/lib -I/opt/gnu/lib/perl5/5.00502/sun4-solaris-thread -I/opt/gnu/lib/perl5/5.00502 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
t/config............Cannot open Syslog: ISA not supported at /opt/gnu/lib/perl5/site_perl/5.005/sun4-solaris-thread/sys/isa_defs.ph line 82.
Server process didn't create a file 'ndtest.prt'. at blib/lib/Net/Daemon/Test.pm line 298.
dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/fork..............Cannot open Syslog: ISA not supported at /opt/gnu/lib/perl5/site_perl/5.005/sun4-solaris-thread/sys/isa_defs.ph line 82.
Can't call method "close" on an undefined value at t/fork.t line 23.
dubious
Test returned status 146 (wstat 37376, 0x9200)
Undefined subroutine &Test::Harness::WCOREDUMP called at /opt/gnu/lib/perl5/5.00502/Test/Harness.pm line 288.
make: *** [test_dynamic] Error 146
----------------------------------------------------------------------
The problem seems to be in this file
/opt/gnu/lib/perl5/site_perl/5.005/sun4-solaris-thread/sys/isa_defs.ph
The symbols '&__sparc' and '&sparc' are not defined.
Have I installed something wrong, is it a Sun bug or a perl bug?
What can I do to resolve this?
Thanks
Willi
----------------------------------------------------------------------
% perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
Platform:
osname=solaris, osvers=2.7, archname=sun4-solaris-thread
uname='sunos wanderer 5.7 generic sun4m sparc sunw,sparcstation-10 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=define useperlio=undef d_sfio=undef
Compiler:
cc='gcc', optimize='-O', gccversion=egcs-2.91.60 19981201 (egcs-1.1.1 release)
cppflags='-D_REENTRANT -I/usr/local/include -I/opt/gnu/include'
ccflags ='-D_REENTRANT -I/usr/local/include -I/opt/gnu/include'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags ='-L/usr/local/lib -R/usr/local/lib -L/opt/gnu/lib -R/opt/gnu/lib'
libpth=/usr/local/lib /opt/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lposix4 -lpthread -lc -lcrypt
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /opt/gnu/lib/perl5/5.00502/sun4-solaris-thread/CORE'
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -R/usr/local/lib -L/opt/gnu/lib -R/opt/gnu/lib'
Characteristics of this binary (from libperl):
Built under solaris
Compiled at Feb 7 1999 22:44:29
@INC:
/opt/gnu/lib/perl5/5.00502/sun4-solaris-thread
/opt/gnu/lib/perl5/5.00502
/opt/gnu/lib/perl5/site_perl/5.005/sun4-solaris-thread
/opt/gnu/lib/perl5/site_perl/5.005
.
----------------------------------------------------------------------
------------------------------
Date: Tue, 9 Feb 1999 15:43:29 +0100
From: "Thorsten Kitz" <thorsten@sauerland.de>
Subject: Win32: Reading Audio CD TOC with perl
Message-Id: <O_Xv2.1902$iu6.13707@news1.cityweb.de>
Hey,
I am currently writing a small database program for Audio CDs, which should
read
the Audio CDs in Batch format and than connect to the CDDB database server
and
get the descriptions.
What I need is a way to read the TOC of an Audio CD. I found a command line
tool
called "cdtool" from the CRWin package, which I use via input filter, but I
would prefer
not to be dependend on third party tools.
Any help would be appreciated,
Thorsten.
------------------------------
Date: 9 Feb 1999 11:31:52 GMT
From: bt@Gaia.teknon.de (Volker Borchert)
Subject: Re: Would love UNIX program that could read Excel binary file...
Message-Id: <79p6b8$m0f@Zeus.teknon.de>
In article <36be475d.3730944@news.apanet.at>, h.juengst@tirol.com (henner juengst) writes:
|> for Linux and private use StarOffice is free dowloadable in the net
|> but dont ask me for the adress
for Solaris as well.
www.stardivision.de
--
"I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed>
"I'm a mechanic, not a doctor." Volker Borchert <bt@teknon.de>
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
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 V8 Issue 4854
**************************************