[8006] in Perl-Users-Digest
Perl-Users Digest, Issue: 1631 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Jan 13 18:17:47 1998
Date: Tue, 13 Jan 98 15:01:37 -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, 13 Jan 1998 Volume: 8 Number: 1631
Today's topics:
OO in a big progect!? <Y_Hu@fccc.edu>
Re: Perl editor needed (jared still)
Re: Perl to Binary? <jdporter@min.net>
Re: perl under windows95 <rpsavage@ozemail.com.au>
Problems installing perl5.004_01 on HPUX10.20 <manne@nortel.ca>
Re: Problems installing perl5.004_01 on HPUX10.20 <mpchandler@mema.mail.fedex.com>
Re: Problems installing perl5.004_01 on HPUX10.20 (Martien Verbruggen)
Re: putenv equivalent? (Martien Verbruggen)
Re: Question- Sockets and TELNET (I R A Aggie)
Re: qxurl/perl peculiarity (from perlfaq9) <jdporter@min.net>
Re: recomended Perl books ? jnorman2@usit.net
RFD: comp.lang.python.announce moderated <fleck@informatik.uni-bonn.de>
Script hangs after download <juan@vibrant.com>
Re: What does qw mean? (brian d foy)
Re: Where can I get the pre-compiled binariy "undump" f <doug1@weboneinc.com>
Write to data file <feng@haas.berkeley.edu>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 13 Jan 1998 17:06:47 -0500
From: Ying Hu <Y_Hu@fccc.edu>
Subject: OO in a big progect!?
Message-Id: <34BBE577.41C6@fccc.edu>
Hello perl programmers:
I am programming in Perl/Tk for a big project in which there are some
interfaces for users to use Internet, Database ,Biostatistic software
and bioinformatic software .... But I am not sure that I must OR
have to OR should use Perl-OO (object oriented module method) in
the project.
I know that Bioperl is a very "nice" Object Oriented Perl Modules
for bioinformatics (computer science for biological information).
I have used it with GCG (Genetic Computer Group) software. But
the speed was slower than the perl scripts that I wrote. If using
OO method, the speed will be slow in the big project?
Any advice will be greatly appreciated.
thanks a lot.
Ying
--------------------------------------------------------------------
Ying Hu, Ph.D Phone: (215) 728-2211
The Cooperative Human Linkage Center FAX: (215) 728-3574
Fox Chase Cancer Center Internet: Y_Hu@fccc.edu
7701 Burholme Ave.
Philadelphia. PA 19111
--------------------------------------------------------------------
"In computer science, we stand on each other's feet."
-- Brian K. Reid
"And sometimes, you can smell it in the code."
-- Daniel Gross
------------------------------
Date: Tue, 13 Jan 1998 20:19:37 GMT
From: jkstill@teleport.com (jared still)
Subject: Re: Perl editor needed
Message-Id: <34bbcc1d.3550784@news.teleport.com>
On 12 Jan 1998 23:30:22 GMT, jeremy@wishbone.stanford.edu (Jeremy Brinkley)
wrote:
>Alpha's good for perl. The syntax highlighting can act a little funny--
>if I remember it might have a minor problem handling # characters. I
>use it for everything on the mac. But I must say that vim is my
>favorite editor.
Vim bigots unite! ;)
------------------------------
Date: Tue, 13 Jan 1998 15:50:37 -0500
From: John Porter <jdporter@min.net>
Subject: Re: Perl to Binary?
Message-Id: <34BBD39D.33A3@min.net>
J. Bacon wrote:
>
> ... merlyn@stonehenge.com is (as
> near as I can determine) COMPLETELY correct ...
Heh heh. I tend to agree.
------------------------------
Date: Wed, 14 Jan 1998 09:30:05 +1000
From: Ron Savage <rpsavage@ozemail.com.au>
Subject: Re: perl under windows95
Message-Id: <34BBF8FD.328E@ozemail.com.au>
Cameron Dorey wrote:
>
> Lynchqvctc wrote:
> >
> > >Subject: Re: perl under windows95[snip]
The other way is to search the net for PFE - The Programmer's File Editor.
Then, you - ie it - can run perl <scriptName> in 1 DOS box and capture the output in another.
Or try the author at: http://www.lancs.ac.uk/people/cpaap/pfe.
--
Cheers,
Ron Savage
Office: savage.ron.rs@bhp.com.au
Home (preferred): rpsavage@ozemail.com.au
------------------------------
Date: Tue, 13 Jan 1998 14:55:52 -0500
From: Anu Manne contractor for Carl Kiger <manne@nortel.ca>
Subject: Problems installing perl5.004_01 on HPUX10.20
Message-Id: <34BBC6C8.35EF@nortel.ca>
I Couldnot install perl on HPUX10.20, got following warning messages
while Making perl(5.004_01) and terminated after failing test 0:
************************************************************************
CCCMD = cc -DPERL_CORE -c -D_HPUX_SOURCE -Aa -DARG_ZERO_IS_SCRIPT
-O
cc: Perl_yylex(): warning 6062: Optdriver: Exceeding compiler resource
limits in Perl_yylex; some optimizations skipped. Use +Onolimit if
override desired. (6062)
cc: Perl_keyword(): warning 6062: Optdriver: Exceeding compiler resource
limits in Perl_keyword; some optimizations skipped. Use +Onolimit if
override desired. (6062)
cc: "pp_sys.c", line 800: warning 604: Pointers are not
assignment-compatible.
cc: "pp_sys.c", line 800: warning 563: Argument #2 is not the correct
type.
cc: "pp_sys.c", line 800: warning 604: Pointers are not
assignment-compatible.
cc: "pp_sys.c", line 800: warning 563: Argument #3 is not the correct
type.
cc: "pp_sys.c", line 800: warning 604: Pointers are not
assignment-compatible.
cc: "pp_sys.c", line 800: warning 563: Argument #4 is not the correct
type.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file
(miniperlmain.o) was detected. The linked output may not run on a PA 1.x
system.
sh: 2060 Bus error(coredump)
You may see some irrelevant test failures if you have been unable
to build lib/Config.pm.
cd t && (rm -f perl; /usr/bin/ln -s ../miniperl perl) \
&& ./perl TEST base/*.t comp/*.t cmd/*.t io/*.t op/*.t
pragma/*.t </dev/tty
base/cond.........ok
base/if...........ok
base/lex..........FAILED on test 0
Failed a basic test--cannot continue.
*** Error exit code 2 (ignored)
./miniperl configpm tmp
*** Termination signal 138
Stop.
***********************************************************************
Output from running myconfig:
->./myconfig
Summary of my perl5 (5.0 patchlevel 4 subversion 1) configuration:
Platform:
osname=hpux, osvers=10, archname=PA-RISC2.0
uname='hp-ux npgch38 b.10.20 a 9000780 2013387633 two-user license '
hint=recommended, useposix=true, d_sigaction=define
bincompat3=y useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O', gccversion=
cppflags='-D_HPUX_SOURCE -Aa'
ccflags ='-D_HPUX_SOURCE -Aa'
stdchar='unsigned char', d_stdstdio=define, usevfork=false
voidflags=15, castflags=0, d_casti32=define, d_castneg=define
intsize=4, alignbytes=8, usemymalloc=y, randbits=15
Linker and Libraries:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
libs=-lnet -lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
libc=/lib/libc.sl, so=sl
useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
cccdlflags='+z', lddlflags='-b -L/usr/local/lib'
->printenv | egrep 'PERL|LC|LANG'
LANG=C
Any help would be greatly appreciated.
Thanks,
Anu
------------------------------
Date: Tue, 13 Jan 1998 14:25:52 -0600
From: Michael P Chandler <mpchandler@mema.mail.fedex.com>
Subject: Re: Problems installing perl5.004_01 on HPUX10.20
Message-Id: <34BBCDD0.FB8DAF0B@mema.mail.fedex.com>
Anu Manne contractor for Carl Kiger wrote:
> I Couldnot install perl on HPUX10.20, got following warning messages
> while Making perl(5.004_01) and terminated after failing test 0:
>
i've always used GNU_GCC to install and have had fewer problems...i can't
answer specific compile options....
i have similar environ
------------------------------
Date: 13 Jan 1998 22:19:59 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: Problems installing perl5.004_01 on HPUX10.20
Message-Id: <69gpaf$13$4@comdyn.comdyn.com.au>
[This really has nothing to do with modules, Newsgroups adapted]
In article <34BBC6C8.35EF@nortel.ca>,
Anu Manne contractor for Carl Kiger <manne@nortel.ca> writes:
> I Couldnot install perl on HPUX10.20, got following warning messages
> while Making perl(5.004_01) and terminated after failing test 0:
>
> ************************************************************************
> CCCMD = cc -DPERL_CORE -c -D_HPUX_SOURCE -Aa -DARG_ZERO_IS_SCRIPT
> -O
If I were you, I would do two things:
1) Since you're compiling a new perl anyway, get the latest. 5.004_04
has been around for a while already.
2) Use gcc. It takes about half an hour to install it, but once you
have done it, you at least have a compiler on your system that will be
able to compile perl, and almost every other thing you can get from
the net.
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | That's not a lie, it's a terminological
Commercial Dynamics Pty. Ltd. | inexactitude.
NSW, Australia |
------------------------------
Date: 13 Jan 1998 22:16:12 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
To: michael engel <engel@carmel.cc.huji.ac.il>
Subject: Re: putenv equivalent?
Message-Id: <69gp3c$13$3@comdyn.comdyn.com.au>
[Posted and Mailed]
[This has nothing to do with modules, Newsgroups adapted]
In article <Pine.SGI.3.96-heb-2.07.980113192250.10886A-100000@carmel.cc.huji.ac.il>,
michael engel <engel@carmel.cc.huji.ac.il> writes:
>
> Is there in perl a command that is equivalent to "putenv" of C
> (or setenv DISPLAY ...)?
$ENV{'PATH'} = '/usr/bin:/bin';
Have a look at the %ENV hash. It's in the perlvar documentation.
perldoc perlvar
/ENV
Martien
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | We are born naked, wet and hungry. Then
Commercial Dynamics Pty. Ltd. | things get worse.
NSW, Australia |
------------------------------
Date: Tue, 13 Jan 1998 16:00:35 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Question- Sockets and TELNET
Message-Id: <fl_aggie-1301981600360001@aggie.coaps.fsu.edu>
In article <34BAEC15.7061@bst.bls.com>, "Mark A. WErner"
<mark.werner@bst.bls.com> wrote:
+ port I get back the SMTP banner just as expected. I know I'm missing
+ something, but I can't figure it out.
Likely the Net::Telnet package.
James
--
Consulting Minister for Consultants, DNRC
The Bill of Rights is paid in Responsibilities - Jean McGuire
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>
------------------------------
Date: Tue, 13 Jan 1998 16:15:56 -0500
From: John Porter <jdporter@min.net>
Subject: Re: qxurl/perl peculiarity (from perlfaq9)
Message-Id: <34BBD98C.4865@min.net>
Tad McClellan wrote:
>
> I dunno much about legal HTML, but those attribute names don't look
> familiar to me. Are those in the HTML spec?
>
> You have a Netscape data file there. Not an HTML file (I think).
> Sure does look almost like HTML though.
>
> Tom was depending on HREF being the *only* attribute in the <A> tag.
>
> ... silly <A> tags such as the above.
>
Well, it's true that the attributes in question (ADD_DATE,
LAST_MODIFIED, etc.) are Netscape "extensions" to HTML, the
format of a Netscape bookmarks file is still close enough.
A policy of "ignore unknown attributes" is not a bad one, anyway.
A policy of allowing only the HREF attribute in the A element
*IS* a bad policy, considering HTML defines at least four other
possible attributes: NAME, REL, REV, and TITLE.
>From my cursory examination of the HTML 4.0 spec, the A element
can have any of the following attributes:
href
name
rel
rev
charset
type
hreflang
accesskey
shape
coords
tabindex
onfocus
onblur
id
class
style
title
lang
dir
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
John Porter
------------------------------
Date: Tue, 13 Jan 1998 20:08:57 GMT
From: jnorman2@usit.net
Subject: Re: recomended Perl books ?
Message-Id: <34bbc850.158006256@nntp.usit.net>
syng@garlic.engr.ucdavis.edu (Michael Ng) wrote:
>Programming Perl and Adv. Perl Programming.
>
>Tiago Stock (tiagosdelete@gdn.net) wrote:
>::> Please follow this thread in recommending your favorite Perl reference book.
>
>::> I'm just starting and would like input from more experienced users in which
>::> book to buy.
>::> I'm sure more readers would appreciate this as well.
>
>::> --
>::> Tiago S.
>::> http://members.aol.com/tiagos
>
>
>
>--
>Michael (syng@engr.ucdavis.edu)
>+--------------------------------------------------------------+
>| http://www.engr.ucdavis.edu/~syng/ |
>| <PGP public key: http://www.engr.ucdavis.edu/~syng/mike.pgp> |
>+--------------------------------------------------------------+
IN AN ATTEMPT TO GET BACK TO THE SUBJECT:
Being a newbie tothe realm of PERL I recently acquired "PERL5
by Example" from QUE. by David Medinets.
I personally am impressed with this book. The material is
presented in a speedy manner, which helps the reader to feel like
he/she is learning quickly. At the same time, enough time is spent on
the discussed topics to get a good understanding.
The only gripe I have about the book is that occasionally the
author assumes the reader knows things that he/she doe not necisarily
know. There are a lot of short explanations followed by "You should be
able to figure the rest out".
The quality of the book plus the included CD which has PERL5
and PERL4 for both WIN32 and UNIX, plus the source code fom all
exapmles, plus 3 E-Books earns a good rating from me.
I havent checked out the O'Reily PERL book yet, but I plan to.
I also have repeatedly been pleased by thier quality.
Regards.
------------------------------
Date: 13 Jan 1998 22:21:29 GMT
From: Markus Fleck <fleck@informatik.uni-bonn.de>
Subject: RFD: comp.lang.python.announce moderated
Message-Id: <69gpd9$12fs@news.rhrz.uni-bonn.de>
[ Article reposted from news.announce.newgroups,news.groups,comp.lang.python,comp.unix.programmer,comp.os.ms-windows.programmer.misc,comp.sys.mac.programmer.misc,comp.object,comp.infosystems.www.authoring.cgi ]
[ Author was Markus Fleck <fleck@informatik.uni-bonn.de> ]
[ Posted on Mon, 12 Jan 1998 15:04:38 GMT ]
REQUEST FOR DISCUSSION (RFD)
moderated group comp.lang.python.announce
This is a formal Request For Discussion (RFD) on the creation of a
moderated newsgroup, comp.lang.python.announce. This is not a Call
for Votes (CFV); you cannot vote at this time. Procedural details
are below.
Newsgroup line:
comp.lang.python.announce Announcements about the Python language. (Moderated)
RATIONALE: comp.lang.python.announce
Traffic on comp.lang.python has grown to the point where readers would
benefit from a separate newsgroup just for announcements. Moderating
the newsgroup would ensure that it was low-volume. General discussion
of Python would continue on the unmoderated newsgroup comp.lang.python.
CHARTER: comp.lang.python.announce
Comp.lang.python.announce is a moderated, low-volume newsgroup for
announcements regarding the Python programming language, including:
- new releases of the core distribution and contributed software
- events (user group meetings, conferences, training, etc.)
- periodic postings (FAQs)
- other items of general interest to the Python community
This is not a discussion group. Posts are expected to have
Followup-To: headers set to "poster" or an appropriate newsgroup;
posts that omit this header will have a Followup-To: comp.lang.python
inserted by the moderator.
Moderation policy:
The intent of moderation is to ensure that this is a low-noise group.
Posts announcing commercial products related specifically to Python
are being encouraged.
END CHARTER.
MODERATOR INFO: comp.lang.python.announce
Moderator: Vladimir Ulogov <gandalf@lgcit.com>
Moderator: Markus Fleck <fleck@informatik.uni-bonn.de>
Vladimir Ulogov is a PSA and Starship Python member
with several years of Python experience and will be
the Primary Moderator.
END MODERATOR INFO.
PROCEDURE:
The posting of this RFD starts a discussion period of 21 days.
The discussion should occur on news.groups only. At the end of the
discussion period a neutral votetaker from the Usenet Volunteer
Votetakers will post a Call For Votes with voting instructions.
Do not confuse this RFD with the Call For Votes; voting will not
commence until later.
DISTRIBUTION:
This RFD has been cross-posted to the following newsgroups:
news.announce.newgroups, news.groups,
comp.lang.python, comp.unix.programmer,
comp.os.ms-windows.programmer.misc, comp.sys.mac.programmer.misc,
comp.object, comp.infosystems.www.authoring.cgi
and the following mailing list:
meta-sig@python.org (Special Interest Group on python.org SIGs)
Subscribe via: meta-sig-request@python.org
Proponent: Markus Fleck <fleck@informatik.uni-bonn.de>
------------------------------
Date: 13 Jan 1998 22:10:08 GMT
From: "Juan Vega" <juan@vibrant.com>
Subject: Script hangs after download
Message-Id: <01bd206f$3f3f1780$4b3d61c7@hercules.vibrant>
Folks,
I haven't found reference in the FAQs as to why the following would happen:
#! usr/bin/perl
# This program:
# 1) parses BETA users' information into a database called
"beta_dnld.txt"
# 2) uploads the requested BETA software to the user
# 3) notfies BETA users of their password via email
# 4) notifies JOLEE of the users' download, inluding their customer
information, and
# 5) returns the user to a "thank you" page
# 1) works fine
# 2) is coded as follows and works fine, too. That is, the file is
recognized by the browser and begins to download.
if ($in{'license_agreement'} =~ /^yes\b/i)
{
print "Location: ../download/files/sebeta7.exe \n"; #
$in{'requested_prod'}";
} else
{
print "Location: ../download/noagmt.htm \n";
exit;
}
# 3), 4), and 5), however do not seem execute and my error logs do not
indicate any malfunctions on the server side so syntax, etc. is fine
I'll be happy to provide source if needed but I think I may have just
abused PERL a little more than it allows. Once I sent the browser to the
new "Location: ....." it just stopped paying attention to the script,
didn't it?
Thanks much,
Juan Vega
juan@vibrant.com
------------------------------
Date: Tue, 13 Jan 1998 16:32:00 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: What does qw mean?
Message-Id: <comdog-ya02408000R1301981632000001@news.panix.com>
Keywords: from just another new york perl hacker
In article <34bad07c.0@news.tsoft.net>, Doug Jacobs <djacobs@tsoft.com> posted:
>Cameron Dorey <camerond@mail.uca.edu> wrote:
>Analogy: cat is short of "conCATenate" but qw...? ("quote word"?)
that seems to be the way that it is listed in the Camel index.
--
brian d foy <comdog@computerdog.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
------------------------------
Date: Tue, 13 Jan 1998 16:55:37 -0500
From: Douglas Clifton <doug1@weboneinc.com>
Subject: Re: Where can I get the pre-compiled binariy "undump" for Linux?
Message-Id: <34BBE2D9.F5A7AEAD@weboneinc.com>
M. Mustun wrote:
> Hello!
>
> Where can I get the precompiled binariy "undump" for Linux?
> Many thanks,
>
> --
>
> M. Mustun
> mailto:mustun@active.ch
> http://www2.active.ch/~mustun
>
>
What is undump and what does have to do w/ c.l.p.m?
--
Douglas Clifton
Unix/C/Perl/CGI/HTML Programmer
===================
Web One Inc.
Website Development
Phone: 888-699-WEB1
Phone: 616-552-9999
Fax: 616-552-9920
sales@weboneinc.com
www.weboneinc.com
===================
------------------------------
Date: Tue, 13 Jan 1998 13:57:51 -0800
From: Patience <feng@haas.berkeley.edu>
Subject: Write to data file
Message-Id: <34BBE35F.773A21E7@haas.berkeley.edu>
Hi guys,
I can really use some help with this one. : )
I have a script that open and process file by each line. When a
particular line match a pattern, my script will read and display the
relevent info. Everything works fine, but now I need to add the
capacity to modify one of the original values of the line.
if ($line =~ /$pattern/)
{
($CHEM_NAME, $SERIAL_NUMB, $QUANTITY, $MISC_INFO) = split (/;/,
$line);
print "$CHEM_NAME -- $SERIAL_NUMB -- $QUANTITY";
$NEW_QTY = $QUANTITY - $USED;
}
When the line is matched, I want to replace the original value of
$QUANTITY with new value of $NEW_QTY. But how do I save the info into
the same line without disturbing other lines in the same file?
(I know how to append info to a file and how to create a file with new
info. This question is just out of my league.)
Thanks a bunch in advance! : )
--
Patience (Pei-shen)
feng@haas.berkeley.edu OR psf@usa.net
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
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.
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 1631
**************************************