[8231] in Perl-Users-Digest
Perl-Users Digest, Issue: 1849 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Feb 10 16:08:16 1998
Date: Tue, 10 Feb 98 13:00:25 -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, 10 Feb 1998 Volume: 8 Number: 1849
Today's topics:
*Web PERL Function Ref.* <hl5a@Virginia.EDU>
Re: *Web PERL Function Ref.* <tchrist@mox.perl.com>
50MB - 200MB FREE WEBSPACE! CGI PROGRAMMER NEEDED <whs010@conrad.appstate.edu>
answer back in other frame (Sigi)
Re: answer back in other frame <tchrist@mox.perl.com>
Re: Can anyone recommend a good perl ODBC book? (Steve Linberg)
Re: Can't configure Perl5.004_04 (Steve Rawlinson)
Re: creating new file with perl <rootbeer@teleport.com>
Re: debugging perl script scott@softbase.com
Help! Simple question needs simple solution. <gregory@bit.csc.lsu.edu>
here document question (Jack Ostroff)
Re: How to write a perl module <rootbeer@teleport.com>
Re: Killfile Triage (Steve Linberg)
module for passwd interaction on solaris <mkogon@sgi.net>
Pasting to STDIN <verros@sicom.com>
Re: Pasting to STDIN (Jack Ostroff)
Re: Pattern matching using * wildcard how? <rootbeer@teleport.com>
Re: Perl problems with anonymous users <rbush@mail.dac.net>
Re: perl5.004_04: make depend infinite loop <rootbeer@teleport.com>
Re: RFC about ``Matt's Script Archive'' (Steve Linberg)
Re: RFC about ``Matt's Script Archive'' <tchrist@mox.perl.com>
Re: RFC about ``Matt's Script Archive'' (Steve Linberg)
Re: Seriously Off Topic, but a Common Complaint/Problem (Jack Straw)
Re: Seriously Off Topic, but a Common Complaint/Problem <tchrist@mox.perl.com>
Re: substitution/expression (Colin Kuskie)
Re: substitution/expression <tchrist@mox.perl.com>
Re: Syntax-coloring editor for NT scott@softbase.com
To All Perl Guru's (James L. Taylor)
Re: To All Perl Guru's (James L. Taylor)
weird problem: script dies when loading array containin (Kevin B Cohen)
Re: weird problem: script dies when loading array conta <dgoddard@us.oracle.com>
Re: What can I do when Perl panics? <rootbeer@teleport.com>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 10 Feb 1998 19:59:01 GMT
From: Hungwen Lin <hl5a@Virginia.EDU>
Subject: *Web PERL Function Ref.*
Message-Id: <6bqbi5$q94$1@murdoch.acc.Virginia.EDU>
Hi,
Can anyone point me to a good website with good reference for
PERL Builtin Functions? I checked quite a few websites
such reference.perl.com, but having problem finding ways to
search for specific built-in functions that shows the syntax
and an example. Something like JAVA API documentation on javasoft
would be nice. Thank you.
HL
------------------------------
Date: 10 Feb 1998 20:26:17 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: *Web PERL Function Ref.*
Message-Id: <6bqd59$j6t$2@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
Hungwen Lin <hl5a@Virginia.EDU> writes:
: Can anyone point me to a good website with good reference for
:PERL Builtin Functions?
Website? Hello? You don't need no pansy website. All Perl distributions
come with complete documentation on all built-in functions. If you
can't find these, talk to your system administration.
% man perlfunc
Should do you. If you have a broken man program or misset manpath, or
you are are a victim of the Evil Empire, then you will have to return
to your admin for further direction.
And apparently you missed
http://www.perl.com/CPAN/doc/manual/html/pod/perlfunc.html
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
When the dinosaurs are mating, climb a tree. --Steve Johnson
------------------------------
Date: Tue, 10 Feb 1998 14:47:28 EST
From: Brian Hancock <whs010@conrad.appstate.edu>
Subject: 50MB - 200MB FREE WEBSPACE! CGI PROGRAMMER NEEDED
Message-Id: <Pine.PMDF.3.95.980210144028.656412310A-100000@conrad.appstate.edu>
My partner and I are in desperate need of a very experienced and very
profesional CGI Programer. You would be the main CGI Programmer for our
sites and get 100mb - 200mb of free web space as pay. You must be willing
to work for free. We are getting 2-5 new sites soon and will need a very
very good cgi programmer for our sites. Thank You.
Preferably a programer that also knows how to make cgi databases and keep
them up. PLEASE RESPOND BY E-MAIL IF YOU ARE INTERESTED AT ALL!! DO NOT
RESPOND IN THE NEWSGROUP.
Brian Hancock
brianfh@soib.com
http://www.soib.com
------------------------------
Date: Tue, 10 Feb 1998 19:59:15 GMT
From: sigi@remsmurr.de.delete.this (Sigi)
Subject: answer back in other frame
Message-Id: <34e0b104.45097489@news.remsmurr.de>
Hi.
I have a problem:
Have a webpage with a form in a frame wich directs to a perl script at
cgi. Now I want that the answer comes back to a special frame on the
webpage. The answer frame is other than the form frame.
Is this possible? How?
Thanks for a answer.
Sigi.
------------------------------
Date: 10 Feb 1998 20:06:09 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: answer back in other frame
Message-Id: <6bqbvh$i30$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
sigi@remsmurr.de writes:
:I have a problem:
:Have a webpage with a form in a frame wich directs to a perl script at
:cgi. Now I want that the answer comes back to a special frame on the
:webpage. The answer frame is other than the form frame.
:Is this possible? How?
You asked a CGI question, not a Perl question. Try the other newsgroup.
And for forging your return address, you are added to my
personal killfile as well as my page that maps bad addresses
to good ones.
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
With a PC, I always felt limited by the software available. On Unix, I am
limited by my knowledge. --Peter J. Schoenster <pschon@baste.magibox.net>
------------------------------
Date: Tue, 10 Feb 1998 15:04:29 -0500
From: linberg@literacy.upenn.edu (Steve Linberg)
Subject: Re: Can anyone recommend a good perl ODBC book?
Message-Id: <linberg-1002981504290001@projdirc.literacy.upenn.edu>
In article <34DFD351.23638F27@wavecomputers.net>, Nathan Stitt
<nate@wavecomputers.net> wrote:
> I'm looking for either a good perl ODBC book or some links on the web.
> I really need something that would describe how to do efficient (read
> FAST) ODBC queries with the ActiveState distribution of perl version 5
> and the Dave Roth ODBC module.
Ask again in comp.lang.perl.modules.
I just posted some sample code there (and here). Get the FAQ from www.roth.net.
--
Steve Linberg | National Center on Adult Literacy
Systems Programmer etc. | University of Pennsylvania
linberg@literacy.upenn.edu | http://www.literacyonline.org
------------------------------
Date: Tue, 10 Feb 1998 20:39:08 GMT
From: steve@clara.net (Steve Rawlinson)
Subject: Re: Can't configure Perl5.004_04
Message-Id: <34e0b8e8.33399995@eros.clara.net>
>[649 lines of crud omitted]
>
>:Unable to obtain requested swap space
>
>Simple problem: you don't have enough swap space.
I dont think this is the case Tom. He is running out of swap because
of the loop that 'make depend' is in. (I could be wrong.)
steve
--
Steve Rawlinson
ClaraNet Ltd
steve@clara.net
0171 903 3000
------------------------------
Date: Tue, 10 Feb 1998 12:21:43 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Steve Rawlinson <steve@clara.net>
Subject: Re: creating new file with perl
Message-Id: <Pine.GSO.3.96.980210122120.26052G-100000@user2.teleport.com>
On Mon, 9 Feb 1998, Steve Rawlinson wrote:
> open(Out, ">>filename") ;
Even when your script is "just an example" (and perhaps especially in that
case!) you should _always_ check the return value after opening a file.
Thanks!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 10 Feb 1998 19:54:13 GMT
From: scott@softbase.com
Subject: Re: debugging perl script
Message-Id: <6bqb95$6ke$1@mainsrv.main.nc.us>
>"The server
>returned an invalid or unrecognized response". How do I find out which line
>is causing the error?
Start your script with:
print "Content-type: text/plain\n\n<pre>";
after the #! line.
Then any error messages generated in the script will be
printed out instead of hidden. If it still gives you
no response, then either perl can't be found or the script
won't compile. Usually these two are not a problem, and it's
some kind of die statement printing an error before
the content type is printed out.
Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more.
------------------------------
Date: Tue, 10 Feb 1998 14:08:38 -0600
From: GREGORY GILLELAND <gregory@bit.csc.lsu.edu>
Subject: Help! Simple question needs simple solution.
Message-Id: <Pine.ULT.3.94.980210140001.20103B-100000@bit.csc.lsu.edu>
I am working on a PERL program and I am having a little trouble
with a string compare. I have narrowed it down to the * line below
and I am assuming that it is just that there is a special way to
do string compares. I hope you forgive me for my lack of knowledge
but this is in haste and with little PERL "know how". If anyone can help
out that would be much appreciated:
$authriz = "cow"; [declared at beginning of program]
[following is inside a get variable procedure]
if ($FORM{'pw'}) {
$pw = "$FORM{'pw'}";
$pw =~ s/"//g;
$pw =~ s/<//g;
$pw =~ s/>//g;
$pw =~ s/\&//g;
}
else {
&error(no_pw);
}
if ($pw != $authrz) { [* this is the problem]
&error(wrong_pw);
}
The program catches if there is NO password but if you send the
correct password or ANYTHING else it just accepts it. It doesnt
get into that if. Other words, It thinks ($pw != $authrz) is false no
matter what!
help!
thanks in advance!
------------------------------
Date: 10 Feb 1998 20:30:48 GMT
From: jack_h_ostroff@groton.pfizer.com (Jack Ostroff)
Subject: here document question
Message-Id: <6bqddo$8uu4@mascagni.pfizer.com>
In Randall's first WebTechniques article, his code includes
the use of a here-document with a twist I can't decipher.
print <<"GROK"; q/"/;
stuff
more stuff
GROK
q/"/;
The stuff is CGI stuff, but I have the same problem with
plain text. Perl (5.004.04 on Sun 5.5.1) gives me a
Useless use of constant in void context for both quoted
quotes. Are these really useless, or am I missing
something about one of the modules he is using?
Thanks for any insight.
Jack
jack_h_ostroff@groton.pfizer.com
------------------------------
Date: Tue, 10 Feb 1998 12:30:51 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: carloshd@hotmail.com
Subject: Re: How to write a perl module
Message-Id: <Pine.GSO.3.96.980210123016.26052J-100000@user2.teleport.com>
On Mon, 9 Feb 1998 carloshd@hotmail.com wrote:
> I'm a perl rookie trying to write a module with some custom functions;
> but I can't find information or examples on how to write a module.
If your copy of Perl is both recent and properly installed, the command
'perldoc perlmod' should help you to get started. Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Tue, 10 Feb 1998 15:18:03 -0500
From: linberg@literacy.upenn.edu (Steve Linberg)
Subject: Re: Killfile Triage
Message-Id: <linberg-1002981518030001@projdirc.literacy.upenn.edu>
In article <6bnv7o$n1g$1@csnews.cs.colorado.edu>, tchrist@mox.perl.com
(Tom Christiansen) wrote:
[fabulous killfile info snipped]
Tom,
This is terrific. Thanks for a great example, and for publishing it so
perhaps some of the terminally clueless can finally get one. Gotta get my
k/f up to date now!
--
Steve Linberg | National Center on Adult Literacy
Systems Programmer etc. | University of Pennsylvania
linberg@literacy.upenn.edu | http://www.literacyonline.org
------------------------------
Date: Tue, 10 Feb 1998 20:43:41 GMT
From: Mark Kogon <mkogon@sgi.net>
Subject: module for passwd interaction on solaris
Message-Id: <34E0BCEA.79D4@sgi.net>
Does anyone know of a perl module which will do the passwd command after
a useradd has been run on a solaris 5.6 system. With solaris, passwd
needs to run after useradd before the account is valid.
Mark Kogon
------------------------------
Date: Tue, 10 Feb 1998 13:15:57 -0700
From: Steve Verros <verros@sicom.com>
Subject: Pasting to STDIN
Message-Id: <34E0B57D.5A73@sicom.com>
Anyone experiance loss of input data when pasting a large amount of
data into terminal (solaris) window running a perl script looking for
STDIN data?
Try running the following in a shell, paste a big chunk of data into
the shell then compare the contents of temp with the original.
#!/apps/perl/bin/perl
open (Temp, "> temp");
while (<>) {
print Temp;
}
close Temp;
--
Steven J. Verros
Disclaimer : Just *my* opinion, ought to be *yours*...
------------------------------
Date: 10 Feb 1998 20:34:51 GMT
From: jack_h_ostroff@groton.pfizer.com (Jack Ostroff)
To: Steve Verros <verros@sicom.com>
Subject: Re: Pasting to STDIN
Message-Id: <6bqdlb$8uu5@mascagni.pfizer.com>
Use eq or ne rather than == or != for string compares.
------------------------------
Date: Tue, 10 Feb 1998 12:26:36 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Sylvain Juneau <sjuneau@microtec.net>
Subject: Re: Pattern matching using * wildcard how?
Message-Id: <Pine.GSO.3.96.980210122518.26052H-100000@user2.teleport.com>
On Mon, 9 Feb 1998, Sylvain Juneau wrote:
> My question is how do I search through this file using a wildcard?
>
> I assume you use a pattern matching but how???
Have you read the manpages about pattern matching? If you have written
some code that you think should do something it doesn't, could you show us
what you've written? Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Tue, 10 Feb 1998 20:30:42 GMT
From: Rod Bush <rbush@mail.dac.net>
Subject: Re: Perl problems with anonymous users
Message-Id: <34E0B8F2.31E2@mail.dac.net>
John Klassa wrote:
>
> On Tue, 10 Feb 1998 09:22:57 -0600, Richard Graham <rgram@ingr.com> wrote:
>
> ->I currently am running a intranet with ISS 3.0 on a Windows NT 4.0
> ->server. Currently the server is configured in ISS to allow both BASIC
> ->authentication and anonymous logins. The web pages that use BASIC
> ->authentication have no trouble running perl correctly it is the
> ->anonymous page I am having trouble with.
> ->
> ->Whenever a anonymous page calls to Perl I get the dreaded "save as"
> ->dialog box in my browser. I am assuming this was caused by a
> ->permissions problem on my perl bin directory, so I went in and changed
> ->the permissions on the perl directory and still had the problem. I then
> ->changed the permissions on the Windows NT system directory and still got
> ->the save problem.
> ->
> ->The perl script is suppose to run from a form action:
> -><form action="/cgi-bin/doit.pl">
> ->I confirmed that the permissons are set for the cgi-bin directory as
> ->well as the files located therein. Can
> ->someone please give me a clue as to what else I need to set?
>
> As a first step, I'd take "comp.lang.perl.misc" out of the newsgroups
> line, as your question has nothing to do with perl...
>
> --
> John Klassa / Alcatel Telecom / Raleigh, NC, USA <><
John, Perhaps you should consider your own advise since apparently you
don't want anything to do with the purpose for this newgroup.
------------------------------
Date: Tue, 10 Feb 1998 12:27:56 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Steve Rawlinson <steve@clara.net>
Subject: Re: perl5.004_04: make depend infinite loop
Message-Id: <Pine.GSO.3.96.980210122705.26052I-100000@user2.teleport.com>
On Mon, 9 Feb 1998, Steve Rawlinson wrote:
> Subject: perl5.004_04: make depend infinite loop
Could something be (mis-)setting the timestamp on one file or another?
Could you have any files timestamped in the future? Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Tue, 10 Feb 1998 15:20:48 -0500
From: linberg@literacy.upenn.edu (Steve Linberg)
Subject: Re: RFC about ``Matt's Script Archive''
Message-Id: <linberg-1002981520480001@projdirc.literacy.upenn.edu>
In article <6bndl9$3i0$1@csnews.cs.colorado.edu>, tchrist@mox.perl.com
(Tom Christiansen) wrote:
> [courtesy cc of this posting sent to cited author et al. via email]
>
> In comp.lang.perl.misc, mikael@techtalk.se (Mikael Skogstrom) writes:
> :I'm trying to use FormMail, from Matt's Script Archive...
>
> I have heard no end of criticisms about that set of programs. I once
> looked at them myself and found them to be full of programming errors
> and undersights. Could an expert perl programmer who has more recently
> examined them please comment on their robustness and style?
I'm far from an expert perl programmer -- good, I'd say, but not expert --
but others have pointed out some of the problems (globals defined deeply,
limited error-checking, etc.).
However, in Matt's defense, I would point out that the scripts there are
(a) free and (b) fairly stable - at least WWWboard seems to be, and
thousands of sites were using it last I checked. It may not be perfect
code, but the stuff I've used has worked fine.
--
Steve Linberg | National Center on Adult Literacy
Systems Programmer etc. | University of Pennsylvania
linberg@literacy.upenn.edu | http://www.literacyonline.org
------------------------------
Date: 10 Feb 1998 20:34:08 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: RFC about ``Matt's Script Archive''
Message-Id: <6bqdk0$j6t$3@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, linberg@literacy.upenn.edu (Steve Linberg) writes:
:However, in Matt's defense, I would point out that the scripts there are
:(a) free and (b) fairly stable -
Free stuff isn't by its very nature automatically good stuff.
And something that's stable can also be dead.
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
: I've heard that there is a shell (bourne or csh) to perl filter, does
: anyone know of this or where I can get it?
Yeah, you filter it through Tom Christiansen. :-) --Larry Wall
------------------------------
Date: Tue, 10 Feb 1998 15:46:11 -0500
From: linberg@literacy.upenn.edu (Steve Linberg)
Subject: Re: RFC about ``Matt's Script Archive''
Message-Id: <linberg-1002981546110001@projdirc.literacy.upenn.edu>
In article <6bqdk0$j6t$3@csnews.cs.colorado.edu>, tchrist@mox.perl.com
(Tom Christiansen) wrote:
> In comp.lang.perl.misc, linberg@literacy.upenn.edu (Steve Linberg) writes:
> :However, in Matt's defense, I would point out that the scripts there are
> :(a) free and (b) fairly stable -
>
> Free stuff isn't by its very nature automatically good stuff.
> And something that's stable can also be dead.
Yes, this is true, but I think the most important tests are: Is it
useful? Does it help people? Are people learning from it? Even if --
and I'm speaking very abstractly, here -- something is "not good" or
"dead", it can still be useful. Matt's scripts have been very useful to a
lot of people. I have less of a sense of how much trouble they've been,
or whether they're the source of a lot of clutter in this group.
I'm not trying to be pedantic, here, just wondering about the larger goal
of this thread. Are you planning some kind of recommendation for or
against Matt's scripts?
--
Steve Linberg | National Center on Adult Literacy
Systems Programmer etc. | University of Pennsylvania
linberg@literacy.upenn.edu | http://www.literacyonline.org
------------------------------
Date: Tue, 10 Feb 1998 19:58:56 GMT
From: jackstraw@notachance.net (Jack Straw)
Subject: Re: Seriously Off Topic, but a Common Complaint/Problem in this NG
Message-Id: <34e0b0e5.2609536@news.erols.com>
Cameron Dorey in <34E0AE45.B4094E9D@mail.uca.edu>:
;My apologies for an off-topic message, but the answer might help relieve
;tension around here.
;
;Oft we read this complaint (or variations thereof):
;
;"Fix your word wrapping, or I _will_ killfile you."
/snip/
;So, I ask you, fellow readers/responders, what to do? Is there a good
;newsreader out there that would be infinitely preferable to NS,
;hopefully freeware (OK, I'm cheap, but I do stuff for free, too)?
;[Please don't suggest WinVN for Windows, the last time I used it, after
;upgrading my version to the newest, it seemed seriously broken.]
;
;Is there a feature of NS that I'm missing (surely some of you use NS,
;maybe even some of the real programmers)?
/snip/
Absolutly, positively check out Agent (shareware) and its freeware
little brother Free Agent. Very good newsreader. Using Netscape for
Usenet is like using a screwdriver to pound nails - no good.
http://www.forteinc.com
+;+;+;
Jack Straw <wnpxfgenj naba rstn bet> KeyID:0x3D561045
Get & learn PGP -> http://www.pgp.com
------------------------------
Date: 10 Feb 1998 20:20:26 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Seriously Off Topic, but a Common Complaint/Problem in this NG
Message-Id: <6bqcqa$j6t$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, Cameron Dorey <camerond@mail.uca.edu> writes:
:So, I ask you, fellow readers/responders, what to do? Is there a good
:newsreader out there that would be infinitely preferable to NS,
:hopefully freeware (OK, I'm cheap, but I do stuff for free, too)?
rn and sons, originally by Larry. I use trn 4.0, which has perl-aware
scoring abilities.
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
The secretaries don't understand me. --Rob Pike
------------------------------
Date: 10 Feb 1998 11:46:24 -0800
From: colink@latticesemi.com (Colin Kuskie)
Subject: Re: substitution/expression
Message-Id: <6bqaqg$b1c@sarek.latticesemi.com>
In article <tloser-1002980940320001@168.133.124.5> you write:
> I am attempting to capitalize any character in a field that follows a
> " " or a "/". Forget doubling them up, right now I'd settle for getting
> *either* to work. According to the manuals (camel 2nd ed p73) I should
> be able to put an expression as the 2nd part of a substitution. But
> when I try:
You can use an expression, but you have to realize that you must use
functions in your expression that exist in perl4!! You are using
perl4 because I just spent 5 minutes trying to figure out why your
sample code works (We have perl5 where I work) when you said that it
didn't. A quick check with perl4 gave me your answer below.
So there are two solutions to your problem:
1) Upgrade to perl5. You can get the source from
http://www.perl.com
and compile and install it in 20-60 minutes (based on your computer
and operating system)
Perl5 is better. Perl5 is faster, smaller and stronger. It will do
your laundry and shine your shoes. It will protect you from the Good
Times virus. Perl5 will prevent you from getting warts, cold sores and
athletes foot. People will laud you for bringing it to your company
and managers and executives will smile at the sound of your name. Your
sys admins (NT and unix) will buy you coffee and bring you donuts on
Friday. The perl gurus who hang around on the newsgroup will look at
your questions and smile, instead of raining flames and FAQs upon your
unprotected head. Perl5 comes with hundreds of pages of documentation,
but the same old cruddy example files that have been around for years.
Perl5 slices, dices and will decorate your clothes with rhinestones.
It will cut through cans like butter, and grind huge textfiles in small
gems of condensed information.
Perl5 is like the force. It connects all things. It goes between the
workstation and the PC, between Windows and HPUX and Solaris/SunOS. It
is a glowing field of energy from which the web draws its power. But
beware of the dark side of Perl, Perl4. It is not secure, it is prone
to the Year 2000 bug. And once you start down the dark path, there is
no hope.
Using perl4 is like driving a Yugo down the autobahn while watching
people driving Perl5 scream past you.
To quote Randal Schwartz:
"Get Perl5. Perl5 is your friend"
Now, if you actually read through all that, I'll tell you the other
way. You can emulate uc by using tr///. HOWEVER, you will be at the
mercy of tr///'s shortcomings, namely that it doesn't work properly on
non ASCII letters, things that you have to escape in HTML like accented
characters or special characters in Spanish, French and German.
Not only that, but the return value from tr/// is weird, so you have to
$field =~ s/ [a-z]/$b = $&; $b =~ tr#a-z#A-Z#; $b/e;
Hope this helped (and didn't offend),
Colin Kuskie
------------------------------
Date: 10 Feb 1998 20:35:20 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: substitution/expression
Message-Id: <6bqdm8$j6t$4@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, colink@latticesemi.com (Colin Kuskie) writes:
:and compile and install it in 20-60 minutes (based on your computer
"time make clean test" took about 90 seconds last time I tried. :-)
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
"Oh, I'm totally outrageous--I just never seem to inspire any outrage. :-)"
--Larry Wall
------------------------------
Date: 10 Feb 1998 19:47:04 GMT
From: scott@softbase.com
Subject: Re: Syntax-coloring editor for NT
Message-Id: <6bqaro$5sl$1@mainsrv.main.nc.us>
Interesting diatribe:
> Buying proprietary software is almost understandable when a free
> equivalent is not available, but paying $100 for a text editor is
> ridiculous. As long as people like you keep buying their crap,
> people like Microsoft will continue to screw the rest of us.
Microsoft is not "screwing the rest of us". Remember the free market,
the thing that makes the economy run? If there's demand, a product will
be viable. If there's no demand, then a product does not survive. The
consumer has full choice in the matter of how to spend money. If the
products do not sell, the company goes out of business or moves on to
something else. (Unfortunately, most people tend to forget that the
economy is based on a free market when it comes to computers. All
computer zealots should be required to take a test which shows they
know how the real world works before they are allowed to post diatribes
:))
Ironically, MultiEdit, the editor which prompted this rant, is the
product of a company that does nothing but develop this product.
They've made it successful by listening to the users, and making each
iteration of the product better. They've built their entire company on
giving users what they want. They're also a small ISV which is still
surviving in an era of integrated development environments and their
built-in editors, and big companies, so you know the editor must be
good to still survive. It is hardly "crap", and it is not from
Microsoft. Why is it the people who launch into rants never have a clue
about what they're talking about? Your $100 goes to support a
small ISV.
That is the flaw in free software: it ignores the fact that you have to
eat. And provide for all other necessities. Some of us even want
creature comforts occasionally. The free software stuff sounds
wonderful, but the GNU Manifesto and all that stuff was written by
ivory tower academics with tenure or some other source of inexhaustible
income who have no clue about what living in the real world is like.
How you have to have a job and things like that. Free software is
written in ivory towers. What if *no* commercial development took
place? Can you imagine the stagnation of software in general? Home
computing would still not exist. Computers would still be locked in
ivory towers. The only software would be tools to create more software
(like UNIX) and a few programs like typesetters and Mathematica which
help create research papers. The only people using computers would
be academics.
(In the interests of full disclosure, I am a MultiEdit user and
really like the product. I also use free editors.)
Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more.
------------------------------
Date: Tue, 10 Feb 1998 20:28:12 GMT
From: cowboy@cnnw.net (James L. Taylor)
Subject: To All Perl Guru's
Message-Id: <34e0b5a1.159167551@news.cnnw.net>
Hello,
OK OK already.....I am totally new to perl and know nothing and then I
read these posts here about doing work offline and I figured it could
be done so instead of sitting here wondering how to do this I ask, and
then when I asked I get insulted that I'm an AOL idiot or no one takes
the time to just say "This isn't possible". Jeez folks give a newbie a
break.
James L. Taylor
------------------------------
Date: Tue, 10 Feb 1998 20:40:47 GMT
From: cowboy@cnnw.net (James L. Taylor)
Subject: Re: To All Perl Guru's
Message-Id: <34e0bb1a.160569210@news.cnnw.net>
Sorry, Not to all Perl Gurus
------------------------------
Date: 10 Feb 1998 15:10:31 -0500
From: kcohen@julius.ling.ohio-state.edu (Kevin B Cohen)
Subject: weird problem: script dies when loading array containing capital G
Message-Id: <6bqc7n$snk@julius.ling.ohio-state.edu>
hi,
i've got a script that starts by initializing an associative array. i
use the %hash = ('a' => 'b', 'c' => 'd'); syntax.
my problem is that the script complains every time it encounters a key
that contains a capital G. (don't know if it would happen with a
capital G in a value, or not---none of my values contain a capital G.)
this oddity occurs whether the letter in question is string-initial,
as in
'Gastric Diverticulum' => 'gastrointestinal',
or whether the letter in question is string-medial, as in
'Foreign Body Of Genitourinary Tract' => 'genitourinary',
if i make it be a lower-case g, then it works. i tried preceding it
with a backslash and changing the single quotes to double (tried not
out of understanding, but because it seemed like a good thing at the
time), but that didn't help at all.
what's it all about???
kevin
------------------------------
Date: Tue, 10 Feb 1998 12:26:34 -0800
From: Denis Goddard <dgoddard@us.oracle.com>
Subject: Re: weird problem: script dies when loading array containing capital G
Message-Id: <34E0B7FA.56FA5B9F@us.oracle.com>
Kevin B Cohen wrote:
>
> i've got a script that starts by initializing an associative array. i
> use the %hash = ('a' => 'b', 'c' => 'd'); syntax.
>
As normal and okay as can be...
> [wierd problems 'G' described]
>
> what's it all about???
Show Us The Code!
(or better, a pared-down, easily readable version of it)
-Denis
--
__ __ _ __ __
~~~~(__)|-< /-\(__ |__(-_ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Denis Goddard, Senior Member, Tech. Staff |"I see the heads of men arise
email: dgoddard@us.oracle.com |with hungry minds and open eyes!"
ourworld.compuserve.com/homepages/d_goddard| -Rush, from 2112: _The Oracle_
------------------------------
Date: Tue, 10 Feb 1998 12:47:32 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: JWears@msn.com
Subject: Re: What can I do when Perl panics?
Message-Id: <Pine.GSO.3.96.980210124522.26052O-100000@user2.teleport.com>
On Tue, 10 Feb 1998 JWears@msn.com wrote:
> Subject: What can I do when Perl panics?
You can find the bug in perl, and send a patch to the maintainance team.
:-)
(I say this because this question is a little like asking, "What can I do
when my nuclear reactor becomes a large puddle?" :-)
> This is running in Perl 5.003 under AIX 4.1.5 on an RS/6000-40.
The bug causing your troubles may well be fixed in 5.004_04, though. If,
of course, it's not in your system. Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
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 1849
**************************************