[6562] in Perl-Users-Digest
Perl-Users Digest, Issue: 187 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Mar 27 01:07:37 1997
Date: Wed, 26 Mar 97 22:00:22 -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 Wed, 26 Mar 1997 Volume: 8 Number: 187
Today's topics:
Re: -=Programmers Page=- (Geoffrey Hebert)
base conversion (for unix rgb/hex converter) (David Staschover)
Re: base conversion (for unix rgb/hex converter) <eric@nettown.com>
Correct usage of UMASK (Geoffrey Hebert)
Re: crypt (Geoffrey Hebert)
Re: crypt (David Alan Black)
Re: How do I save HTML document that's been created "on (Geoffrey Hebert)
Re: Making Script Execute? (Tad McClellan)
Microsoft Running Naked Through the Streets? (Nate Patwardhan)
Re: Multithreading? (Malcolm Beattie)
Re: Multithreading? (Chaim Frenkel)
Re: Need help CGI scripting HTML forms to email (Geoffrey Hebert)
Re: passing <body bgcolor... in a script?? (Geoffrey Hebert)
Perl Configuration Info for Mult-Edit Text Editor <billc@tibinc.com>
Re: Perl Configuration Info for Mult-Edit Text Editor (Chaim Frenkel)
Re: q (Jon Bell)
Re: Regular Expresion question. (Eric Bohlman)
Re: Small Database (Geoffrey Hebert)
Re: Smarter indexing algorythm (Ian Alderman)
Re: term 'regular expressions' considered undesirable (Jeff Stampes)
Re: Text Justification <tchrist@mox.perl.com>
Re: Text Justification <christop@ozinter.co.jp>
Re: Unix 'Cat' equivelent <merlyn@stonehenge.com>
Re: Unix and ease of use (WAS: Who makes more ...) <cheno@opal.co.il>
Re: Unix and ease of use (WAS: Who makes more ...) <rhofmann@crl.com>
using modem to send a page <matt@callnet.com>
Re: What's a good Perl book? <tchrist@mox.perl.com>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 27 Mar 1997 03:29:00 GMT
From: soccer@microserve.net (Geoffrey Hebert)
Subject: Re: -=Programmers Page=-
Message-Id: <5hcok1$5h9$2@news3.microserve.net>
This is the wrong news group. And even worse YOUR SITE DOES NOT WORK.
You need to check it out on other browsers before you try to publish
it!
"Marcus Hammar" <sonic@algonet.se> wrote:
>Hi, I have made a site for developers. I have a download area and a
>register for developers all around the world. It's of course free!! The URL
>is:
>http://www.algonet.se/~sonic
>/Marcus (sonic@algonet.se)
>check it out today!
------------------------------
Date: 26 Mar 1997 22:48:47 -0500
From: das@panix.com (David Staschover)
Subject: base conversion (for unix rgb/hex converter)
Message-Id: <5hcqmv$koj@panix.com>
I want to write a unix shell command to convert from rgb to hex. Is there
a function
in perl to convert bases?
Thanks,
David Staschover
das@panix.com
------------------------------
Date: Wed, 26 Mar 1997 22:39:31 +0000
From: Eric Poindexter <eric@nettown.com>
To: David Staschover <das@panix.com>
Subject: Re: base conversion (for unix rgb/hex converter)
Message-Id: <3339A5A3.6AA824DE@nettown.com>
David Staschover wrote:
>
> I want to write a unix shell command to convert from rgb to hex. Is there
> a function
> in perl to convert bases?
>
> Thanks,
>
> David Staschover
> das@panix.com
package ChangeBase;
# this is http://nettown.com/perl/site_perl/Math/ChangeBase.pm
# by A. Eric Poindexter <poindexter@nettown.com>
# @ c. winter 96/97
# eg...changeBase(base, n) where base >= 2, <= 36
# (62 (a..z maybe later)
# or case option
use Exporter ();
@ISA = qw(Exporter);
@EXPORT = qw(changeBase);
sub changeBase {
my $base = shift;
my $n = shift;
do {
$v = $n % $base;
$v += ord '0';
$v += 7 if $v > 57;
push @n, $v;
$n = int $n / $base;
} while ($n > 1);
@n = reverse @n;
return pack "C*", @n;
}
1
#--a,a
#end of package ChangeBase
--
Eric
<mailto:eric@nettown.com>
[http://nettown.com/perl/]
have a good day! (yes, Poindexter is Really my name :-)
------------------------------
Date: Thu, 27 Mar 1997 03:47:21 GMT
From: soccer@microserve.net (Geoffrey Hebert)
Subject: Correct usage of UMASK
Message-Id: <5hcpmd$5tm$1@news3.microserve.net>
I do an umask 000;
Before an open for write in a cgi script operating from the web.
Should I immediately do an umask 022?
Or forget it, as it is reset when leaving my script.
Thanks
------------------------------
Date: Thu, 27 Mar 1997 03:11:07 GMT
From: soccer@microserve.net (Geoffrey Hebert)
Subject: Re: crypt
Message-Id: <5hcnig$59e$1@news3.microserve.net>
I thought there was a new feature in perl-5. So, I reread the
description for crypt. It does not do a compare against any password.
It does what it's name says, it encrypts.
So, if you want to compare your pass word with the system's record of
your password:
1. get the encrypted password from your system (call this $syspass)
(if you can, maybe /etc/passwd)
2. get the password from your user (call this $userpass)
3. encrypt your user password
$encry_user_pass=(crypt($userpass, $salt)
4. What is salt? Salt is a key that your system adminstrator has
established and if he is a little smart he is not using the first two
characters of the password like every example I see. If he cares
about security he will also not tell you what it is.
5. Now does $syspass eq $encry_user_pass (That is 'eq' not == or =)
And there you have it!
Hope that was fun.
Mercedes Arredondo <mercedes@fgidec1.tuwien.ac.at> wrote:
>I use the comand 'crypt' when checking the password entered by a user in
>an HTML form. The user also is asked to introduce his/her name in order
>to get from the system his/her real password. This function is supposed
>to encrypt the password entered and compare this encripted password with
>the correspondet password (the real password)of the user logged in. If
>success the user is allowed to access...
>But it never matches, the result of the 'crypt' function is always false
>even with my own password (which I am sure is a correct password).
>any suggestions???
>Thanks
>Mercedes
>---------
------------------------------
Date: 27 Mar 1997 04:06:17 GMT
From: dblack@icarus.shu.edu (David Alan Black)
Subject: Re: crypt
Message-Id: <5hcrnp$dsa@pirate.shu.edu>
Hello -
soccer@microserve.net (Geoffrey Hebert) writes:
>I thought there was a new feature in perl-5. So, I reread the
>description for crypt. It does not do a compare against any password.
>It does what it's name says, it encrypts.
>So, if you want to compare your pass word with the system's record of
>your password:
>1. get the encrypted password from your system (call this $syspass)
> (if you can, maybe /etc/passwd)
>2. get the password from your user (call this $userpass)
>3. encrypt your user password
> $encry_user_pass=(crypt($userpass, $salt)
>4. What is salt? Salt is a key that your system adminstrator has
>established and if he is a little smart he is not using the first two
>characters of the password like every example I see. If he cares
>about security he will also not tell you what it is.
>5. Now does $syspass eq $encry_user_pass (That is 'eq' not == or =)
The salt is actually stored (plain text-ly) in the first two characters
of the encrypted password. It isn't system-wide, and it isn't the
same as the first two characters of the actual password, so you have
to grab it.
Here's an example from the perfunc manpage:
$pwd = (getpwuid($<))[1];
$salt = substr($pwd, 0, 2);
system "stty -echo";
print "Password: ";
chop($word = <STDIN>);
print "\n";
system "stty echo";
if (crypt($word, $salt) ne $pwd) {
die "Sorry...\n";
} else {
print "ok\n";
}
David Black
dblack@icarus.shu.edu
------------------------------
Date: Thu, 27 Mar 1997 03:35:07 GMT
From: soccer@microserve.net (Geoffrey Hebert)
Subject: Re: How do I save HTML document that's been created "on the fly"?
Message-Id: <5hcovg$5h9$3@news3.microserve.net>
What book did you say you were using?
If you are using one of the book's with perl and the
web, there are several examples in each book, but it
it too much for a quick post. I suggest you go back
to the book.
What was your perl question? Too gerneral.
>Hello. I hope someone can help me. I'm going
>through a crash-course on Perl on my own and I
>was wondering...
>After filling out a form, an HTML document is
>created once someone "submits" it. How do I save
>the newly-created document so others can access it
>later?
>Thanks in advance for any suggestions or help.
>Rei
------------------------------
Date: Wed, 26 Mar 1997 20:26:34 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: Making Script Execute?
Message-Id: <qslch5.vu6.ln@localhost>
mwebster@burke.com wrote:
: I now have Perl running properly on our NT server, and when I execute the
: script from the prompt, it does exactly what it is suppose to do.
: However ...
: When I try to execute the script using a remote browser, it tries to save
: the script instead of execute it.
: Any suggestions?
^^^^^^^^^^^^^^^
I would suggest asking your CGI question in a newsgroup
that is in some way connected to CGI programming ;-)
comp.infosystems.www.authoring.cgi
Or, you might read the new Perl FAQ (part 9), where the very
first question is:
---------------------------------------
=head2 My CGI script runs from the command line but not the browser. Can you help me fix it?
Sure, but you probably can't afford our contracting rates :-)
Seriously, if you can demonstrate that you've read the following FAQs
and that your problem isn't something simple that can be easily
answered, you'll probably receive a courteous and useful reply to your
question if you post it on comp.infosystems.www.authoring.cgi (if it's
something to do with HTTP, HTML, or the CGI protocols). Questions that
appear to be Perl questions but are really CGI ones that are posted to
comp.lang.perl.misc may not be so well received.
The useful FAQs are:
http://www.perl.com/perl/faq/idiots-guide.html
http://www3.pair.com/webthing/docs/cgi/faqs/cgifaq.shtml
http://www.perl.com/perl/faq/perl-cgi-faq.html
http://www-genome.wi.mit.edu/WWW/faqs/www-security-faq.html
http://www.boutell.com/faq/
---------------------------------------
Perl != CGI
--
Tad McClellan SGML Consulting
Tag And Document Consulting Perl programming
tadmc@flash.net
------------------------------
Date: 26 Mar 1997 20:20:23 GMT
From: nvp@bill-graham.nfic.com (Nate Patwardhan)
Subject: Microsoft Running Naked Through the Streets?
Message-Id: <5hc0e7$ger$1@bob-marley.nfic.com>
I've heard rumours that Microsoft is running naked through the
streets. Well I suppose it's their perogative, as they own the
streets they're running naked through.
------------------------------
Date: 26 Mar 1997 17:51:42 GMT
From: mbeattie@sable.ox.ac.uk (Malcolm Beattie)
Subject: Re: Multithreading?
Message-Id: <5hbnne$je@news.ox.ac.uk>
In article <3338647A.5388675D@enteract.com>, Eryq <eryq@enteract.com> wrote:
>Tom Christiansen wrote:
>>
>> [courtesy cc of this posting sent to cited author via email]
>>
>> In comp.lang.perl.misc,
>> Elliot Mednick <elliot@wellspring.com> writes:
>> :So, is -- or will there be -- multithreading support in Perl?
>>
>> Yes, in the 5.005 release.
>
>I take it Perl will need to be compiled with sfio.
It's not an sfio/stdio thing really. Any (decent) threads
implementation will have a threadsafe stdio anyway. However, one
thing which does strike me on seeing your posting is that Perl
often plays games with "standard" stdio internals to speed things
up. I'd probably better check that there aren't any races there.
>At last count, there were other non-thread-safe libraries that
>were big players in Perl (libgdbm, I think, is one): do you forsee
>a big shift in Perl's code base coming?
I don't want to change too much to get multi-threading in. Most of
the responsibility for synchronisation could easily be left to the
programmer, just as with C. On the other hand, there may well be
tempting opportunities to let perl gain locks implicitly in certain
cases for things like XSUBs that may need funnelling. Perl has a
veritable arsenal of internal support for triggering code
automagically when things are referenced, go out of scope or such
like and I'd be surprised if we couldn't make some mileage out of it.
--Malcolm
--
Malcolm Beattie <mbeattie@sable.ox.ac.uk>
Oxford University Computing Services
"Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee
------------------------------
Date: 27 Mar 1997 04:17:16 GMT
From: Chaimf@cris.com (Chaim Frenkel)
Subject: Re: Multithreading?
Message-Id: <5hcscc$sfh@chronicle.concentric.net>
I'd really like to see
mutex sub foo { ... }
$foo = mutex sub { ... };
Since the mutex grab is runtime anyway, thrperl could do it during
the subroutine entry. Which should make $Foo->fooit() do it correctly.
Also mutex $foo or my mutex $foo would be nice.
<chaim>
P.S. Here's the "l" I owe you.
<c>
Malcolm Beattie (mbeattie@sable.ox.ac.uk) (comp.lang.perl.misc <5hbnne$je@news.ox.ac.uk>) wrote:
: In article <3338647A.5388675D@enteract.com>, Eryq <eryq@enteract.com> wrote:
: >Tom Christiansen wrote:
: >>
: >> [courtesy cc of this posting sent to cited author via email]
: >>
: >> In comp.lang.perl.misc,
: >> Elliot Mednick <elliot@wellspring.com> writes:
: >> :So, is -- or will there be -- multithreading support in Perl?
: >>
: >> Yes, in the 5.005 release.
: >
: >I take it Perl will need to be compiled with sfio.
:
: It's not an sfio/stdio thing really. Any (decent) threads
: implementation will have a threadsafe stdio anyway. However, one
: thing which does strike me on seeing your posting is that Perl
: often plays games with "standard" stdio internals to speed things
: up. I'd probably better check that there aren't any races there.
:
: >At last count, there were other non-thread-safe libraries that
: >were big players in Perl (libgdbm, I think, is one): do you forsee
: >a big shift in Perl's code base coming?
:
: I don't want to change too much to get multi-threading in. Most of
: the responsibility for synchronisation could easily be left to the
: programmer, just as with C. On the other hand, there may well be
: tempting opportunities to let perl gain locks implicitly in certain
: cases for things like XSUBs that may need funnelling. Perl has a
: veritable arsenal of internal support for triggering code
: automagically when things are referenced, go out of scope or such
: like and I'd be surprised if we couldn't make some mileage out of it.
--
Chaim Frenkel Nonlinear Knowledge, Inc.
chaimf@cris.com +1-718-236-0183
------------------------------
Date: Thu, 27 Mar 1997 03:41:37 GMT
From: soccer@microserve.net (Geoffrey Hebert)
Subject: Re: Need help CGI scripting HTML forms to email
Message-Id: <5hcpbm$5qm$1@news3.microserve.net>
>How, for example, would I write a script to send email from
>"sheldon@execpc.com" to "srampton@aol.com" with "Hello, world" in the
>Subject line and a simple paragraph of text in the message body? If
>someone can explain how I do this much, I think I can figure out the rest.
Below works for me!
print "Content-type: text/plain\n\n";
open (MAIL,"| mail $mailto")
or die "Can not open mail at this time, try later";
print MAIL "FROM: soccer\@microserve.net\n";
print MAIL "SUBJECT: Your Soccer Page Added as Link\n";
print MAIL "This email is to notify you, that we are adding your
www\n";
print MAIL "page to our list of important soccer links.\n\n";
etc
print MAIL "Geoffrey Hebert email soccer\@microserve.net\n";
close (MAIL);
------------------------------
Date: Thu, 27 Mar 1997 03:55:18 GMT
From: soccer@microserve.net (Geoffrey Hebert)
Subject: Re: passing <body bgcolor... in a script??
Message-Id: <5hcq5b$5tm$2@news3.microserve.net>
Richard Morin <qnc496@durhamnews.net> wrote:
>Hi folks,
>This novice has been working on a script
If this is perl, include the code associated with the problem.
Running of the page could mean about a thousand things.
------------------------------
Date: Wed, 26 Mar 1997 21:34:36 -0500
From: Bill Cowan <billc@tibinc.com>
To: Perl-Win32-Users <Perl-Win32-Users@ActiveWare.com>
Subject: Perl Configuration Info for Mult-Edit Text Editor
Message-Id: <3339DCBC.2D5A@tibinc.com>
No, this is not a "What is the best editor..." question.
Most of the Perl configuration setup for Multi-Edit editor is already
done, i.e. templates, keywords, syntax highlighting, etc. What I am
looking for is either:
1. the editor macros or
2. the configuration dialog info
needed to process the compiler's error messages.
Also interested in anything else other people have done to use this
editor as their Perl development environment.
Thanks, Bill
-----------------------------------------------------------------------
Bill Cowan <billc@tibinc.com> Voice:919-490-0034 Fax:919-490-0143
Tiburon, Inc./3333 Durham-Chapel Hill Blvd Suite E-100/Durham, NC 27707
------------------------------
Date: 27 Mar 1997 04:09:45 GMT
From: Chaimf@cris.com (Chaim Frenkel)
Subject: Re: Perl Configuration Info for Mult-Edit Text Editor
Message-Id: <5hcru9$sfh@chronicle.concentric.net>
[posted and mailed]
Huh, syntax highlighting? How'd they do that.
Currently the only thing that can parse Perl is perl.
<chaim>
Bill Cowan (billc@tibinc.com) (comp.lang.perl.misc <3339DCBC.2D5A@tibinc.com>) wrote:
: No, this is not a "What is the best editor..." question.
:
: Most of the Perl configuration setup for Multi-Edit editor is already
: done, i.e. templates, keywords, syntax highlighting, etc. What I am
: looking for is either:
:
: 1. the editor macros or
: 2. the configuration dialog info
:
: needed to process the compiler's error messages.
:
: Also interested in anything else other people have done to use this
: editor as their Perl development environment.
--
Chaim Frenkel Nonlinear Knowledge, Inc.
chaimf@cris.com +1-718-236-0183
------------------------------
Date: Thu, 27 Mar 1997 04:05:02 GMT
From: jtbell@presby.edu (Jon Bell)
Subject: Re: q
Message-Id: <E7oooF.G0C@presby.edu>
Tom Phoenix <rootbeer@teleport.com> wrote:
>On 26 Mar 1997, Anthony Mulligan wrote:
>
>> Subject: q
>
>a
y?
--
Jon Bell <jtbell@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA
------------------------------
Date: Thu, 27 Mar 1997 05:33:12 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Regular Expresion question.
Message-Id: <ebohlmanE7osrC.Jn@netcom.com>
Aaron Bennett (abennett@stonehill.edu) wrote:
: More importantly, many people explained to me the futility of attempting
: to validate email addresses. I agree, I just want to put them through
: some preliminary screening to trap obvious typos like
: bennett@stonehilledu or bennett.stonehill.edu. So I settled on
: m/@[^.@]+\.+/, which by looking for one or more @'s followed by any
: character besided and @ followed by at least one period, should cut out
: extremely obvious problems while allowing bizzare email address
: conventions to pass through.
That pattern will match "@@1.." which is plainly ill-formed...
------------------------------
Date: Thu, 27 Mar 1997 03:23:45 GMT
From: soccer@microserve.net (Geoffrey Hebert)
Subject: Re: Small Database
Message-Id: <5hcoa6$5h9$1@news3.microserve.net>
And how much did you say you were paying?
------------------------------
Date: Thu, 27 Mar 1997 04:49:37 GMT
From: ian@cs.cornell.edu (Ian Alderman)
Subject: Re: Smarter indexing algorythm
Message-Id: <3339f760.51220270@nntpsrv.cs.cornell.edu>
If it's acceptable to assume that the six closest zip codes are all
within a certain range of miles (say 100 miles), you then know that
the X coordinates of any two close zip codes must also be within this
range of miles. You could use this to limit the number of comparisons
made.
You could sort the zip codes on the X coordinate. Then, for each zip
in the sorted array, check following zips in the array as you have
below, until you get to a zip that's more than 100 miles away in just
X, then "next OUTER", since you won't get any more matches anyway.
You'll have to either scan backwards or put found matches in both
zip's lists. Hope this helps!
>I recently wrote a program that takes a database of zip codes with their
>geographic coordinates and creates an index database listing each zip code
>and the six closest zip codes. The trouble is, it looks like it might
>take as long as ten days to run! I was wondering if anyone had any ideas
>how I could tighten the algorythm so that it would not take as long. Here
------------------------------
Date: 27 Mar 1997 00:02:28 GMT
From: stampes@xilinx.com (Jeff Stampes)
Subject: Re: term 'regular expressions' considered undesirable
Message-Id: <5hcdel$57e$1@neocad.com>
Tom Christiansen (tchrist@mox.perl.com) wrote:
: Don't we have anything more important to argue about?
Gee, you mean like the variations in spelling and use surrounding the
word 'e-mail'?
--
Jeff Stampes -- Xilinx, Inc. -- Boulder, CO -- jeff.stampes@xilinx.com
------------------------------
Date: 27 Mar 1997 03:43:45 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Text Justification
Message-Id: <5hcqdh$qh9$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
mrchristopher@inorbit.com writes:
:Hi Hi
:
:I came across a script on the web a few months ago for text
:justification which I have since lost track of. I never tried it but it
:appeared you fed it raw ascii and it spat out a nice text block with
:lines split and spaces inserted in the right places so text would appear
:left and right justified when put between >pre< tags (sic).
:
:Does anyone know the script I'm talking about or know of one similar ?
Like the entry in the FAQ?
Q. How do I reformat a paragraph?
A. Use Text::Wrap (part of the standard perl distribution):
use Text::Wrap;
print wrap("\t", ' ', @paragraphs);
See http://www.perl.com/perl/faq/index.html
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
"Those who do not understand Unix are condemned to reinvent it, poorly."
--Henry Spencer
------------------------------
Date: Thu, 27 Mar 1997 13:37:59 +0900
From: "christop@ozinter.co.jp" <christop@ozinter.co.jp>
Subject: Re: Text Justification
Message-Id: <3339F9A7.314C@ozinter.co.jp>
Sorry I thought Wrap just wrapped text by breaking up the lines in the
correct place instead of splitting words. I didn't realise it will work
out where to add spaces in to lines so that all margins are in straight
justified lines rather than ragged edge like I asked. The script I'm
talking about r/l justified and cleaned up spacing after punctuation too
so that you don't have to sit for hours manually going through each line
adding spaces here and there and can then just plug your block of text
straight in between pre tags. I think it was a commercial script. Back
to altavista again I guess.. :)
Cheers, Christopher
Tom Christiansen wrote:
>
> [courtesy cc of this posting sent to cited author via email]
>
> In comp.lang.perl.misc,
> mrchristopher@inorbit.com writes:
> :Hi Hi
> :
> :I came across a script on the web a few months ago for text
> :justification which I have since lost track of. I never tried it but it
> :appeared you fed it raw ascii and it spat out a nice text block with
> :lines split and spaces inserted in the right places so text would appear
> :left and right justified when put between >pre< tags (sic).
> :
> :Does anyone know the script I'm talking about or know of one similar ?
>
> Like the entry in the FAQ?
>
> Q. How do I reformat a paragraph?
>
> A. Use Text::Wrap (part of the standard perl distribution):
>
> use Text::Wrap;
> print wrap("\t", ' ', @paragraphs);
>
> See http://www.perl.com/perl/faq/index.html
>
> --tom
> --
> Tom Christiansen tchrist@jhereg.perl.com
>
> "Those who do not understand Unix are condemned to reinvent it, poorly."
> --Henry Spencer
------------------------------
Date: 26 Mar 1997 19:44:17 -0700
From: Randal Schwartz <merlyn@stonehenge.com>
To: tchrist@mox.perl.com (Tom Christiansen)
Subject: Re: Unix 'Cat' equivelent
Message-Id: <8c913aoxz2.fsf@gadget.cscaper.com>
>>>>> "Tom" == Tom Christiansen <tchrist@mox.perl.com> writes:
Tom> [courtesy cc of this posting sent to cited author via email]
Tom> In comp.lang.perl.misc, Tom Phoenix <rootbeer@teleport.com> writes:
Tom> :perl -pe0
Tom> Aw, cat pee. Call it
Tom> perl -pee
Tom> It's much more fun. :-)
Hadn't thought of that. Barewords in -e. The greatful dead, to
get into the debugger:
gadget>> perl -dead
Stack dump during die enabled outside of evals.
Loading DB routines from perl5db.pl patch level 0.9907
Emacs support available.
Enter h or `h h' for help.
main::(-e:1): ad
DB<1>
Don't type "redo" at the debugger prompt. wow! ugh!
print "Just another Perl hacker," # but not what the media calls "hacker!" :-)
## legal fund: $20,495.69 collected, $182,159.85 spent; just 523 more days
## before I go to *prison* for 90 days; email fund@stonehenge.com for details
--
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@ora.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: Wed, 26 Mar 1997 15:34:33 GMT
From: Chen Ofek <cheno@opal.co.il>
Subject: Re: Unix and ease of use (WAS: Who makes more ...)
Message-Id: <33394209.41C6@opal.co.il>
Stephane Plattner wrote:
>
> IMHO this answer contradicts to the basics of economics. Openess means
> to a great extent equality and equality prohibits competition.
> (communism). Competition rises only when differences exists and it's
> the market (or the environment), who dictates which product is better.
>
> --
Wrong!!!
Openess means more competition.
chen
------------------------------
Date: 27 Mar 1997 04:06:21 GMT
From: Kyle R. Hofmann <rhofmann@crl.com>
Subject: Re: Unix and ease of use (WAS: Who makes more ...)
Message-Id: <5hcrnt$558@nexp.crl.com>
In article <Pine.SOL.3.95.970324225300.21723A-100000@stiletto.acadian.net>, Phil Fraering wrote:
: I think there are lessons as to why Linux succeeded and GNU failed
: (although the GNU people are trying to claim Linux as their success
: because it uses GPL'd code, and they promote the GPL concept, and Linux
: uses a lot of GNU code) is that Linux was and is anarchic in development,
: while the HURD remained the closed domain of the official "Project Hurd."
The Hurd hasn't failed yet. It was released in August. I don't know
how well it works, but a few people say that it works for the trivial
tasks that they've tried on it.
Linux is a better choice now, IMHO. It's had a lot more usage than the
Hurd, is almost certainly more stable, and, at least right now, a much
easier platform to fund software for. The Hurd does have the advantage of
(theoretically) becoming more flexible due to its microkernel design and
the different translators. It might work out, but certainly not now when
it's not even close to done.
Followups to comp.os.linux.advocacy and gnu.misc.discuss.
--
Kyle R. Hofmann <rhofmann@crl.com>
"We've never done a piece of software unless we thought it would sell."
-- Bill Gates
------------------------------
Date: Wed, 26 Mar 1997 23:10:20 -0500
From: Matt Ahrens <matt@callnet.com>
Subject: using modem to send a page
Message-Id: <3339F30E.41C67EA6@callnet.com>
I would like to figure out how to use a modem attached to a tty port on
a unix box to send a page to a pager. I know what modem commands I need
to send, but I am having trouble connecting to the tty port.
So, how do I go about talking with things like /dev/tty00 from perl? I
tried open(TTY, "+>/dev/tty00); but it just seemed to hang. I also tried
using IPC::Open3 to connect to a 'tip' process, but that didn't work
either (i think i messed up something with the select() function.)
I also looked around on CPAN but didn't find anything that looked
useful.
If anyone has any suggestions, please cc: replies to my email, because
my news server has been flakey lately.
thanks,
--matt
------------------------------
Date: 27 Mar 1997 04:39:58 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: What's a good Perl book?
Message-Id: <5hctmu$t88$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
pdf@morgan.ucs.mun.ca (Paul David Fardy) writes:
:Exactly where should we send our comments on the Perl book?
:
:I found what I thought to be some errata in the Camel2e and sent mail
:to tchrist@perl.com (as noted on the errata web page). I got an
:autoreply with a list of topics and contact options.
I refiled that into my +camel/errata folder.
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
Although the Perl Slogan is There's More Than One Way to Do It, I hesitate
to make 10 ways to do something. :-)
--Larry Wall in <9695@jpl-devvax.JPL.NASA.GOV>
------------------------------
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 187
*************************************