[8430] in Perl-Users-Digest
Perl-Users Digest, Issue: 2047 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Mar 7 14:08:42 1998
Date: Sat, 7 Mar 98 11:00:24 -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 Sat, 7 Mar 1998 Volume: 8 Number: 2047
Today's topics:
501 error from www server <petersongroup-nospam@home.com>
Active X & OLE <viggiani@pitagora.it>
Re: Add int, convert to string, substitute. HELP! <uri@sysarch.com>
Re: Arrays and using output of executed program as inpu (Craig Keefner)
BETA TESTERS NEEDED!!! gabriel@communitech.net
Re: Help wanted <uri@sysarch.com>
Re: Memory limitation of Perl for OS/2 (Ilya Zakharevich)
Re: multi word unix commands and exec <Tony.Curtis+usenet@vcpc.univie.ac.at>
Newbie needs mentor for web perl scripts <TerryLCora@worldnet.att.net>
Re: Newbie needs mentor for web perl scripts <jdf@pobox.com>
Omnihttp <cauleyfj@ix.netcom.com>
Performance Question (Konstantinos Agouros)
Re: Q: obscuring Perl scripts? <palincss@nicom.com>
RegEx Quiz Question <webmaster@fccjmail.fccj.cc.fl.us>
Re: safe file modification strategy (w/flock, new_tmpfi (Kenneth Herron)
Re: Sys::Syslog basics (James Vahn)
Re: The -w switch (was Re: better way to do this?) <joseph@5sigma.com>
Re: The -w switch (was Re: better way to do this?) <joseph@5sigma.com>
Re: The -w switch (was Re: better way to do this?) <joseph@5sigma.com>
Re: The -w switch (was Re: better way to do this?) <joseph@5sigma.com>
Re: The -w switch (was Re: better way to do this?) <joseph@5sigma.com>
Tom, grow up [Re: The -w switch (was Re: better way to <joseph@5sigma.com>
Re: Training in UK? (team lamer)
Re: Year 10000 Compliance (Super-User)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 7 Mar 1998 10:36:15 -0800
From: "Dan Peterson" <petersongroup-nospam@home.com>
Subject: 501 error from www server
Message-Id: <6ds435$2ol$1@ha2.rdc1.sfba.home.com>
I am trying to do a POST to a web server running Apache.
I have the LWP code and it worked till the server was changed.
Here is the POST code I am using:
my $req = POST 'http://$user:$pw@//<host-name>/index.cgi',
[proc => "retrieve",
retrieve => $code,
usr => $user];
local ($got_it)=$ua->request($req)->as_string;
This method worked with "Server: Apache/1.2.4 mod_perl/1.00"
They have changed the server to be "Server: Apache/1.1.3" now it does not
work Error 501 is returned.
If I take the post information above and build a html page from it (I have
valid data for the $vars) It works just fine!
Anybody?
-Dan
------------------------------
Date: Wed, 04 Mar 1998 11:24:42 +0100
From: Domenico Viggiani <viggiani@pitagora.it>
Subject: Active X & OLE
Message-Id: <34FD2BEA.390DF995@pitagora.it>
Hi!
I have a problem no one was able to solve
I'm trying to use an ActiveX control (TiffDLL, to manipulate and convert
TIFF images, found on http://www.activex.com) with Perl for Win32.
Usually, I'm able to use OLE with syntax:
use Win32::OLE;
Win32::OLE::CreateObject("ObjectName",$conn);
Trying to use this DLL in the same way:
use Win32::OLE;
Win32::OLE::CreateObject("TiffDLL.ClsTiffDLL",$conn);
$param = "source=c:\\tmp\\tif\\00000001\.tif, dest=c:\\tmp\\img001\.gif,
format=gif";
$result = $conn->ConvertImage($param);
print $result, "\n";
I get a few of error messages windows like this:
Instruction at "0x0f044e3a" referenced memory at "0x01c21dc8". Memory
cannot be 'read'.
then Dr. Watson starts but the application works well!!! It converts my
image.
Suggestion? Ideas? Is ActiveX supported?
Best regards.
Thanks in advance.
Domenico Viggiani
------------------------------
Date: 07 Mar 1998 11:14:32 -0500
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Add int, convert to string, substitute. HELP!
Message-Id: <x7vhtqv5p3.fsf@sysarch.com>
"Ronald G\"oggel" <r.goeggel@atos-group.de> writes:
> John Robson schrieb in Nachricht <6dmpf2$7er@freenet-news.carleton.ca>...
> use
> s/([0-9][0-9][0-9][0-9])/$1+1000/ge
> or
> s/([0-9][0-9][0-9][0-9])/$1+1000/e
i don't know the original question but at least help the poster with
better regex code.
s/(\d\d\d\d)/$1+1000/e
or
s/(\d{4})/$1+1000/e
\d matches a digit and is much easier to read and write than [0-9]
{4} matches 4 previous subexpressions.
read perlre for more help.
uri
--
Uri Guttman SYStems ARCHitecture and Software Engineering
uri@sysarch.com Have Perl, Will Hack
http://www.sysarch.com (781) 643-7504 x*2 FAX: (781) 643-2710
Try the Best Search Engine on the Net --------> http://www.northernlight.com
------------------------------
Date: Sat, 07 Mar 1998 18:09:04 GMT
From: keefner@kinetic.com (Craig Keefner)
Subject: Re: Arrays and using output of executed program as input
Message-Id: <350189fb.158236472@news.visi.com>
On 04 Mar 1998 17:38:24 -0500, Jonathan Feinberg <jdf@pobox.com> wrote:
>keefner@kinetic.com (Craig Keefner) writes:
>
>> open(JUSTDO, "|dos_search.exe /p $part /m \"$model\" /s $year >tmp/$$.file");
>> close(JUSTDO);
>
>First: you must check the success of both of those calls!
>
>You'd only put that pipe at the beginning if you wanted to feed
>something into the STDIN of that executable. Since you want the
>output of the executable, you should do this:
>
>open(DOS_SEARCH, "/path/to/dos_search.exe /arg /arg2 |") or die "$!";
># now you can read from DOS_SEARCH, e.g.,
>my @results = <DOS_SEARCH>;
>close DOS_SEARCH or die "$!";
I had actually tried that and yes it works fine from the
command line, but as part of a script which is run from
the webserver it causes the server to "hang".
Status bar reports server contacted. Waiting for reply...
Craig
------------------------------
Date: Sat, 07 Mar 1998 11:24:46 -0600
From: gabriel@communitech.net
Subject: BETA TESTERS NEEDED!!!
Message-Id: <6drvrc$km$1@nnrp1.dejanews.com>
Hello Everyone:
We are an online business and we have just developed a new server based
program using both CGI and Java.
This program allows a person to automatically setup over 20 features on
his/her account. These features include a Java Chatroom, Search Engine, File
Manager which can be used to upload/delete files to their account and even
change the permissions on files and move between directories, Hits Logger,
Shopping Carts, Error Page, and much more.
Like many programmers, we have spend considerable time working on this
program, but we can only find so many errors.
We are in need of beta testers to try out the program. We are most interested
in feedback! We want to know of any GRAMATICAL (including spelling) errors,
bad interface, and just anything about the program you would change!
This is in no way a soliciation to buy our services, as we do not believe in
spamming the newsgroups. I persoanlly feel that the newsgroups is a good
place to find smart people who would give good feedback if they were to beta
test this program.
If you are interested, please write down the login and password below.
login: test
password: abc
You will need this login and password when entering the site. Visit this site
to try out the program, we hope you like it:
http://www.test.communitech.net:911
Remember we really want your feedback! This is the only way we can improve
our product or make any necessary changes. Please pay attention to the English
and make sure everything makes sence to you. Please send feedback to
webmaster@communitech.net.
Finally, all of the links lined up horizonally at the bottom of every page are
not working yet, other than this, evertying should be working fine. Feel free
to upload files, create a Java Chatroom, create a search engine and search the
website, whatever you want.
Thank you very much for your time and I hope I have captured your interest in
beta testing our program.
Best Regards,
Gabriel Murphy
gabriel@communitech.net
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: 07 Mar 1998 11:08:16 -0500
From: Uri Guttman <uri@sysarch.com>
To: "ITC" <itccars@twics.com>
Subject: Re: Help wanted
Message-Id: <x7yaymv5zj.fsf@sysarch.com>
"ITC" <itccars@twics.com> writes:
> As a beginner to Perl, I have a problem. I am contacted with TWICS
> (http://www.twics.com). In my first CGI script in Perl, the line;
how do people like this get a cont(r)act doing CGI? wonders never cease
to amaze me. tell your bosses that i (among many others) are available to
do this work for an appropriate fee and not waste valuable time learning
perl on the fly. if they really need the cgi we/i can do it quickly for
you.
uri
--
Uri Guttman SYStems ARCHitecture and Software Engineering
uri@sysarch.com Have Perl, Will Hack
http://www.sysarch.com (781) 643-7504 x*2 FAX: (781) 643-2710
Try the Best Search Engine on the Net --------> http://www.northernlight.com
------------------------------
Date: 7 Mar 1998 17:37:45 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: Memory limitation of Perl for OS/2
Message-Id: <6ds0l9$4to$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to ic
<altmann@zoology.ubc.ca>],
who wrote in article <6dr6gs$h2c$1@nntp.ucs.ubc.ca>:
> To OS/2 users:
>
> It looks like the version of Perl that I am using on OS/2 does not use any
> more than 32 megs of RAM. Has anyone else run into a similar problem?
>
> Do you know a version of the interpretor that can use more than 32 megs
> of RAM on OS/2?
Time to upgrade?
D:\tcpip\tmp>perl -e "$a= 'a'; $a x= shift; print length $a" 40e6
40000000
Ilya
------------------------------
Date: 07 Mar 1998 17:03:37 +0100
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: multi word unix commands and exec
Message-Id: <7xu39ajxnp.fsf@beavis.vcpc.univie.ac.at>
Re: multi word unix commands and exec, Josh
<jkessler@austx.tandem.com> said:
Josh> I have run into a problem when trying to get a multi
Josh> word system UNIX command to work via an 'exec'
Hmm, I "UNIX command" doesn't really mean much.
Josh> command. I am working on a sun4 platform with Perl
Josh> 5.004. I am trying to alter the prompt using the 'set
Josh> prompt=' command. How is this feat accomplished?
Josh> exec ("set prompt=$host");
This appears to be an attempt to do a csh/tcsh command in
perl. Clearly this doesn't work. "set" is not a "UNIX
command", it's a command in a shell to set an internal shell
variable.
You can't do it in perl (unless you re-write tcsh in perl
:-)
Beat to look in the doc. for your shell for how to set
prompts.
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, AT | http://www.vcpc.univie.ac.at/
"Everything I am, I learned on the back of cereal boxes" ~ RJ, "Over the Hedge"
------------------------------
Date: Sat, 7 Mar 1998 11:14:56 -0500
From: "Terry Cora" <TerryLCora@worldnet.att.net>
Subject: Newbie needs mentor for web perl scripts
Message-Id: <6drrt6$s28@bgtnsc02.worldnet.att.net>
Very new to programming web sites (love at first site). Working on a
non-profit project that I want to be a real public service. There are many
features I would like to add from stock scripts, shareware and freeware, but
am only about 50% successfull in getting the scripts running on my Unix
vertual server through tabnet.
Looking for someone with experience and knowledge to share in adapting
existing scripts (I'll try to crawl before I learn to walk). I'm sure I can
find something to offer in the way of mutual exchange (even paid support).
My first web site can be seen at http://michianalaw.com (I just sold this
site yesterday). My non-profit site is at http://michianafaith.com. (I pay,
or donate for all scripts used on my sites - it is money well spent).
Would really like to get DCLinks98 running (sitedeveloper.com) the author,
understandibly like many, does not encourage support. There are some others
I would like to try. Anyone wishing to provide personal assistance would be
greatly appreciated. My questions are too numerous and lengthy to post.
Thanks in advance!
Terry
------------------------------
Date: 07 Mar 1998 11:59:19 -0500
From: Jonathan Feinberg <jdf@pobox.com>
Subject: Re: Newbie needs mentor for web perl scripts
Message-Id: <67lqwi6w.fsf@news.concentric.net>
"Terry Cora" <TerryLCora@worldnet.att.net> writes:
> Very new to programming web sites (love at first site).
Now you're hooked. Soon you'll be spending your money on books with
animals on the cover and waving away the people you love as they
implore you to walk away from your computer for a few minutes, but
you're just adding one... last... feature...
> Anyone wishing to provide personal assistance would be
> greatly appreciated. My questions are too numerous and lengthy to post.
Well, at the risk of being pilloried again (hey, maybe I *like* being
flamed), I'll suggest that your best strategy is twofold:
1) Hire more experienced programmers to get you through your immediate
needs. (Maybe they'll help you learn as they go. I'd be flattered if
one of my clients asked me to explain my code to them.)
2) Purchase the book _Learning Perl_, and see if that doesn't get you
to a point where you're better equipped to answer most of your own
questions by consulting the excellent documentation that accompanies
perl. After _Learning Perl_ comes _Programming Perl_. And at all
times, consult the docs. See especially perlfaq, and perlfaq1-9.
If an answer in the FAQ is unclear, bring it here.
You might also want to visit www.perl.com, where you can read about
training and other ideas for self-tutelage.
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
------------------------------
Date: Sat, 07 Mar 1998 11:26:39 -0500
From: "Frank J. Cauley" <cauleyfj@ix.netcom.com>
Subject: Omnihttp
Message-Id: <3501753F.8B50DB38@ix.netcom.com>
I downloaded the Perl for windows 95 and I am able to replicate the
"Simplest CGI Program" from the learning Perl Book in the md-dos mode.
However I am not able to run it under the Omnihttp software.
Does anyone have any experience with this software that emulates a
server on the PC?
------------------------------
Date: Sat, 7 Mar 1998 10:49:03 GMT
From: elwood@rumba.m.isar.de (Konstantinos Agouros)
Subject: Performance Question
Message-Id: <1998Mar7.104903.4026@rumba.m.isar.de>
Hello,
I want to check a string that's entered by the user against some regular
expressions I read from a config-file. Now I am wondering what is the fastest
way to do that:
a) Put the expressions in an array and do something like
foreach $exp(@ARRAY)
{
if($string =~ /$exp/)
.....
b) Generate one regexp in the form exp1|exp2|exp3|exp4|exp5...
and do one match against that.
I don't need to know which of the expressions matched, and they are read in
once during startup.
So what's the fastest way to do this?
Konstantin
--
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@rumba.m.isar.de
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres
------------------------------
Date: Sat, 07 Mar 1998 08:35:34 -0800
From: Steve Palincsar <palincss@nicom.com>
To: John Callender <jbc@west.net>
Subject: Re: Q: obscuring Perl scripts?
Message-Id: <35017756.B3F@nicom.com>
And you actually paid good money for a product with code that looks
like this? What does that make you? And what "useful purpose"
has been thus served other than protecting the bug from correction?
This product could walk on water, double my agency's appropriation and
be totally free of charge and I wouldn't recommend we even test it.
Steve Palincsar
John Callender wrote:
> The good people at Elsop have something to do this (I don't know if
> they'd make it available, but you could always ask). I know this because
> I purchased their Linkscan product (very happy with it, by the way), and
> at one point I wanted to take a look at it to try to solve a mildly
> annoying bug, and found that the Perl source looked like this:
>
> $bgYF =
> "JExzZGlyID0gIi4vIjskV3NhVXcgPSAwOyRybVRPRXYgPSAwOyRGUVp4b3kgPSAwOyZaYkV
> KcXI7aWYgKCRGUVp4b3kgPT0gMSkgeyR0VVdRSyA9ICJMaW5rU3B5ZGVyIjsgfQ==";eval(&TKuB($b
> gYF));
> $cfQkd = "";foreach $mUDBJ (@ARGV) {$cfQkd = "$cfQkd $mUDBJ";}$cfQkd =~
> s/^\s*//
> ;print "\n$tUWQK Version $wzSO.\n\n";
>
> [etc.]
>
> I asked Malcolm Hoar, the program's author, about it, and he told me
> he'd looked around for something to obscure the code, but ended up just
> rolling his own code-obscurer, and had found it to be not too hard a
> task.
>
> Now, I know the FAQ dogma re: security through obscurity being
> essentially unreliable, but the fact is that this is a case where some
> simple munging serves a highly useful purpose. I *know* any given Perl
> guru, with sufficient incentive, could convert this back to human
> readable perl. But why would they bother? Even powerful public-key
> cryptography doesn't *guarantee* security; it simply puts the cost of
> decoding a given piece of data beyond the point where it's worth doing.
>
> Likewise with this. How much would it be worth to a given Linkscan
> customer to decode this $495 software? Not much -- especially given the
> existence of a suitably restrictive license agreement. The Perl FAQ's
> implicit insistence that one put *all* one's faith in lawyers, though,
> seems kind of naive (or disingenuous) to me, especially when perl makes
> it so easy to muck up the source.
>
> Now, from a philosophical standpoint, I can completely understand folks
> like Randal and Tom and Larry finding it abhorrent that there would be
> perl code floating around out there that had been intentionally
> de-legiblized for any reason other than a $100 Obfuscated Perl prize.
> But the fact remains, Perl is being used to create commercial products,
> and sometimes the creators would just as soon use the power of the
> language to make it *harder* (not impossible, just harder) for people to
> rip off their intellectual property.
>
> http://www.elsop.com/
>
> --
> John Callender
> jbc@west.net
> http://www.west.net/~jbc/
------------------------------
Date: Sat, 07 Mar 1998 17:51:00 GMT
From: Bill Jones <webmaster@fccjmail.fccj.cc.fl.us>
Subject: RegEx Quiz Question
Message-Id: <350187C4.3B3DB267@fccjmail.fccj.cc.fl.us>
($client,$host) = /(\d+\.\d+\.\d+\.\d+).+ > (\d+\.\d+\.\d+\.\d+)/
if /P \d+:\d+\((\d+)\)/ && $1 > 0;
The above is from Lincoln Stein's 'sniffer'.
Would someone please help me understand it
a little better?
Thx,
Bill :-)
------------------------------
Date: 7 Mar 1998 16:18:04 GMT
From: kherron@campus.mci.net (Kenneth Herron)
Subject: Re: safe file modification strategy (w/flock, new_tmpfile, and syscopy?)
Message-Id: <6drrvs$5s6$1@news.campus.mci.net>
In article <8c1zwh40ex.fsf@gadget.cscaper.com>,
Randal Schwartz <merlyn@stonehenge.com> wrote:
|The safest way I can think of this morning to *update* a file is like this:
|
| open file for read/write
| flock file exclusive
| read data
| rewind file
| write processed data
| truncate file to end of data
| close file (which unflocks)
I suspect the original questioner wants to keep his RADIUS server
running while the update is going on. The basic Livingston RADIUS
server doesn't use file locks, so it'd blow past the lock above and
possibly access the db in mid-update. Our locally-hacked copy uses a
gdbm database which covers the locking issue, but the above procedure
would unnecessarily lock the server out for the duration of the update
(too long to be acceptable, in our case).
In our case (or for the stock Livingston server) a more viable
strategy is:
Grab an exclusive "I'm modifying file" lock through some
standardized method (e.g. create "file.lock"
and lock that)
Create file.new
Rename file.new -> file
Remove exclusive lock
This will work fine (at least as far as the RADIUS server is concerned)
because the server closes and reopens the file for each
authentication. If it did keep the file open constantly, then one
would have to notify it to close/reopen (if it had the ability) or
kill/restart the server (crude, but effective).
The point is that there's no one right way to update a file that
may be in use. You have to tailor the procedure to match the
other tasks you may be interacting with.
--
Kenneth Herron -- kherron@campus.mci.net
"When Microsoft first took control of the Funk & Wagnalls Encyclopedia
product, there was a flattering biography of Bill Gates. But it said he
was known as a tough competitor. Now it says that he's known for his
charitable contributions." -- Gary Reback, <http://www.ljx.com/reback/>
------------------------------
Date: 7 Mar 1998 07:48:53 -0800
From: jvahn@short.circuit.com (James Vahn)
Subject: Re: Sys::Syslog basics
Message-Id: <6drq95$qks$1@short.circuit.com>
Quentin Fennessy wrote:
>
> (James Vahn writes:
> > Stumped. How do I get perl5 to write to a linux syslog daemon?
> >
> > openlog('perl', 'pid', 'LOCAL0');
>
> For LOCAL0, try LOG_LOCAL0.
No effect, but what it turned out to be (and I'm not sure why)
was the need to start syslogd with the -r parameter. I found
this info in dejanews, at the suggestion of the robot reply to
new posters to this group. :-)
The robot also mentioned 'use diagnostics' with the perl -w
parameter, but for a while it had me convinced that my perl
package was broken. Try it, perl complains about something
missing and when you look, indeed it is. 5.003_07
#!/usr/bin/perl -w
use diagnostics;
use Sys::Syslog;
$program = "perl";
openlog($program, 'cons,pid', 'LOCAL5');
syslog('info',"this is a test\n");
closelog();
While the syslogd -r works, it causes minor problems for innd and
agetty. If anyone has a better solution, then I'd sure appreciate
hearing it.
-+-
------------------------------
Date: Sat, 07 Mar 1998 09:06:25 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Subject: Re: The -w switch (was Re: better way to do this?)
Message-Id: <3501706F.DB26FC58@5sigma.com>
Lars Gregersen wrote:
> [...] the
> warnings could be a result of new features and/or bugs that you might
> want to know about
While this is a possibility, I can't offhand think of a new feature
that has been "revealed" by -w. These tend to be mandatory messges.
> - not to mention undetected bugs in your code. This
> is especially important in CGI code.
Why are undetected bugs "especially" important in CGI code?
-joseph
--
Joseph N. Hall, prop., 5 Sigma Productions mailto:joseph@5sigma.com
Author, Effective Perl Programming . . . . . http://www.effectiveperl.com
Perl Training . . . . . . . . . . . . . . . http://www.perltraining.com
------------------------------
Date: Sat, 07 Mar 1998 09:12:27 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Subject: Re: The -w switch (was Re: better way to do this?)
Message-Id: <350171D8.4A5B1A31@5sigma.com>
"-w flushes out most problems" is a gross overstatement. It does,
however, catch a lot of certain kinds of errors.
As far as comparing oil changes to -w, that one has me scratching
my head.
-joseph
Craig Berry wrote:
> What *will* cause abuse to be heaped upon your head is if you ask for
> help in c.l.p.m without using at least -w and preferably strict as well.
> That's because these will typically flush out most problems with your
> script before you need to ask us for help.
--
Joseph N. Hall, prop., 5 Sigma Productions mailto:joseph@5sigma.com
Author, Effective Perl Programming . . . . . http://www.effectiveperl.com
Perl Training . . . . . . . . . . . . . . . http://www.perltraining.com
------------------------------
Date: Sat, 07 Mar 1998 09:09:31 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Subject: Re: The -w switch (was Re: better way to do this?)
Message-Id: <35017128.BB78EC92@5sigma.com>
Imply? Jonathan, people come right out and say it!
-joseph
Jonathan Feinberg wrote:
>
> Art Cohen <upsetter@shore.net> writes:
>
> > But I just find it bizarre and slightly unsettling the number of people --
> > supposedly knowledgeable about perl if not "gurus" -- who are eager to
> > jump all over anyone who dares to suggest that certain "orthodoxies"
> > aren't always necessary. Some people have implied that I'm a complete
> > moron simply because I prefer to work without them.
>
> Truly, anyone who'd imply such a thing isn't worthy of a response.
> Ignore them.
--
Joseph N. Hall, prop., 5 Sigma Productions mailto:joseph@5sigma.com
Author, Effective Perl Programming . . . . . http://www.effectiveperl.com
Perl Training . . . . . . . . . . . . . . . http://www.perltraining.com
------------------------------
Date: Sat, 07 Mar 1998 09:14:18 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Subject: Re: The -w switch (was Re: better way to do this?)
Message-Id: <35017247.F1DEB338@5sigma.com>
Uh, `/bin/ls`? Surely you mean <*> or glob "*".
-joseph
Andrew M. Langmead wrote:
> You can get a list of files
> by using opendir()/readdir() or by `/bin/ls`. The latter isn't
> portable, and will fork off another process, but on the other hand it
> sorts its output for you, hides dotfiles, prepends the path to the
> file, and handles shell globs.
--
Joseph N. Hall, prop., 5 Sigma Productions mailto:joseph@5sigma.com
Author, Effective Perl Programming . . . . . http://www.effectiveperl.com
Perl Training . . . . . . . . . . . . . . . http://www.perltraining.com
------------------------------
Date: Sat, 07 Mar 1998 09:16:50 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Subject: Re: The -w switch (was Re: better way to do this?)
Message-Id: <350172DF.126CC693@5sigma.com>
-w's tendency to spew hundreds or thousands of lines of messages
is yet another indication it's still not ready for prime time.
Just about every compiler I've ever used has had a message like
"Too many errors. Compilation halted." However, -w has evolved in
the direction of dogma rather than utility. In my humble opinion.
-joseph
Danny Aldham wrote:
>
> X-Newsreader: TIN [version 1.2 PL2]
>
> On Tue, 03 Mar 1998 18:55:35 GMT, gaj wrote:
>
> >Why the fsck would Larry make -w and use strict optional?
>
> I have fired up too many programs that used a CPAN module
> and start by listing half a screen of error messages about
> uninitialized variables to want -w in production code.
--
Joseph N. Hall, prop., 5 Sigma Productions mailto:joseph@5sigma.com
Author, Effective Perl Programming . . . . . http://www.effectiveperl.com
Perl Training . . . . . . . . . . . . . . . http://www.perltraining.com
------------------------------
Date: Sat, 07 Mar 1998 09:41:30 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Subject: Tom, grow up [Re: The -w switch (was Re: better way to do this?)]
Message-Id: <350178A7.8D693252@5sigma.com>
This is how Tom addressed my complaint about what was basically
a slur on my book.
My Foreword is quite clear on Randal's role in the book, and although
I can agree to disagree about many things, I just can't let it lie
when Tom states or even insinuates that there was something amiss
in the process of titling or attributing Effective Perl Programming.
I assure you, *that* process was very carefully executed.
-joseph
--- how Tom addressed my complaint #1 ---
Return-Path: <tchrist@jhereg.perl.com>
Received: from jhereg.perl.com (tchrist@perl.com [199.45.135.9]) by
gadget.cscaper.com (8.8.3/8.8.3) with ESMTP id IAA06430 for
<joseph@5sigma.com>; Sat, 7 Mar 1998 08:45:35 -0700 (MST)
Received: (from tchrist@localhost) by jhereg.perl.com (8.7.4/8.7.3) id
IAA31710; Sat, 7 Mar 1998 08:45:45 -0700
Date: Sat, 7 Mar 1998 08:45:45 -0700
From: Tom Christiansen <tchrist@jhereg.perl.com>
Message-Id: <199803071545.IAA31710@jhereg.perl.com>
To: joseph@5sigma.com
Subject: Re: The -w switch (was Re: better way to do this?)
X-Newsgroups: comp.lang.perl.misc
In-Reply-To: <34FEEBF7.62846341@5sigma.com>
References: <34ef6e05.687476@nntp.best.com> <888975369.5442@thrush.omix.com>
<6dihvv$7jr$1@csnews.cs.colorado.edu> <888996750.645870@thrush.omix.com> <6djher$b63$1@csnews.cs.colorado.edu>
Organization: Perl Consulting and Training
You lose. Big.
In article <34FEEBF7.62846341@5sigma.com> you write:
:Tom, what the hell are you talking about, and why do you think
:you should volunteer an opinion? Is it just your nature to
:meddle, insult, and disparage, or were you having a bad day?
:
: -joseph
:
:Tom Christiansen wrote:
:> [courtesy cc of this posting sent to cited author via email]
:>
:>In comp.lang.perl.misc, Jon Drukman <jsd@hudsucker.gamespot.com> writes:
:>:note that the book "effective perl programming" by joseph hall and
:>:randal schwartz
:>
:>Randal wrote five pages, so "with" is probably too strongly worded.
:
:--
:Joseph N. Hall, prop., 5 Sigma Productions mailto:joseph@5sigma.com
:Author, Effective Perl Programming . . . . . http://www.effectiveperl.com
:Perl Training . . . . . . . . . . . . . . . http://www.perltraining.com
--- how Tom addressed my complaint #2 ---
The original message was received at Sat, 7 Mar 1998 09:23:48 -0700
from gadget.cscaper.com [206.67.186.3]
----- The following addresses have delivery notifications -----
"|/home/tchrist/.audit_mail tchrist" (unrecoverable error)
(expanded from: <tchrist@jhereg.perl.com>)
----- Transcript of session follows -----
Unauthorized mail delivery from banned user rejected.
554 "|/home/tchrist/.audit_mail tchrist"... Service unavailable
----- Original message follows -----
Return-Path: joseph@5sigma.com
Received: from gadget.cscaper.com (gadget.cscaper.com [206.67.186.3]) by
jhereg.perl.com (8.7.4/8.7.3) with ESMTP id JAA32282 for
<tchrist@jhereg.perl.com>; Sat, 7 Mar 1998 09:23:48 -0700
Received: from [206.67.186.4] (screechy.cscaper.com [206.67.186.4]) by
gadget.cscaper.com (8.8.3/8.8.3) with SMTP id JAA06910 for
<tchrist@jhereg.perl.com>; Sat, 7 Mar 1998 09:23:16 -0700 (MST)
Date: Sat, 07 Mar 1998 09:26:12 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Reply-To: joseph@5sigma.com
To: Tom Christiansen <tchrist@jhereg.perl.com>
Message-ID: <MailDrop1.2d7j-PPC.980307092612@screechy.cscaper.com>
X-Authenticated: <joseph@gadget.cscaper.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
This is a test of the reflect-o-matic mail server.
-joseph
John Callender wrote:
>
> Joseph N. Hall wrote:
> >
> > Is it just your nature to
> > meddle, insult, and disparage, or were you having a bad day?
>
> Actually, that's a false dichotomy, since both halves of the statement
> are clearly true: yes, that's his nature, and yes, the posts in question
> seem to have been made when he was in a particularly feisty mood.
>
> I'm thinking caffeine deprivation, maybe?
>
> --
> John Callender
> jbc@west.net
> http://www.west.net/~jbc/
--
Joseph N. Hall, prop., 5 Sigma Productions mailto:joseph@5sigma.com
Author, Effective Perl Programming . . . . . http://www.effectiveperl.com
Perl Training . . . . . . . . . . . . . . . http://www.perltraining.com
------------------------------
Date: Sat, 07 Mar 1998 16:46:37 GMT
From: spam@fritter.com (team lamer)
Subject: Re: Training in UK?
Message-Id: <350179b7.2981987@news2.newscene.com>
On Sat, 7 Mar 1998 12:31:52 +0000, Patrick Daley
<pads@diawl.demon.co.uk> enlightened us with:
>Anyone know of any Perl training courses in the UK?
Learning Tree do a perl course. I'v only done OO/c++ with them so
can't comment.
------------------------------
Date: 6 Mar 1998 16:56:45 GMT
From: root@ihc.com (Super-User)
Subject: Re: Year 10000 Compliance
Message-Id: <6dp9sd$bbb@dali>
Ade Barkah (mbarkah@hemi.com) wrote:
: Colin Dooley (colin@medit3d.com) wrote:
: : I'm looking forward to the year 10000 problem with interest.
:
: Most computers today wont be able to work past the year 2038
: (time_t overflows,) so lets fix that first. ;-)
:
We don't need to worry about this, by then we'll all be assimilated as part
of the BORG collective. No need to worry about trivial computers...
::grin::
Matt
------------------------------
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 2047
**************************************