[6505] in Perl-Users-Digest
Perl-Users Digest, Issue: 130 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Mar 17 07:07:14 1997
Date: Mon, 17 Mar 97 04:00:21 -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 Mon, 17 Mar 1997 Volume: 8 Number: 130
Today's topics:
# Need help with perl script <rmariano@u.washington.edu>
Re: [HELP] !@#$% sort subroutines... (Brian L. Matthews)
Re: [Q] userid in a client/server environment (Michael Constant)
Re: [Q]Manipulating hash values --epilogue <darrylc@eznet.com>
Re: [Q]Manipulating hash values <mohan@sapna.india.hp.com>
Re: AntiSPAM is as bad as SPAM (was Can you help me wit (I R A Aggie)
Re: How do I get all more than 2 hours old files <bildun@vci.net>
Re: How do I make the <STDIN> invisible? <x741056@tiuk.ti.com>
Re: Knowing the pid of a fork()'ed child, really (Michael Constant)
Re: Min (or Max) function? Is there such a beast? (M.J.T. Guy)
Module for handling of Passwd files <roberto.fabbri@provincia.bz.it>
Re: Numeric function (Lack Mr G M)
Other OS's.. Re: Who cares? Re: Who makes more $$ - Win <jbulwinkle@geocities.com>
Re: Q: Good Perl Book <dbenhur@egames.com>
Q: How can I read the full pathname <harry@bci.se>
Re: Reg Ex help (Michael Constant)
SOLVED! was Re: Win32::ODBC & MS SQL Servers IMAGE data <humphric@akcity.govt.nz>
Re: Sorting help <vladimir@cs.ualberta.ca>
Re: String format <dehon_olivier@jpmorgan.com>
Re: What language do Perl REs recognize? <seay@absyss.fr>
Re: What's wrong with "an email" (was: How to spam - le <rfi@uebemc.siemens.de>
Re: What's wrong with "an email" <pb@ecce-terram.de>
Re: Why does string comparison use signed chars? <tchrist@mox.perl.com>
Re: Win32/ODBC <humphric@akcity.govt.nz>
Year2000 Conference: Toronto (Year2000 Information Network)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 17 Mar 1997 00:12:46 -0800
From: Ramon Mariano Jr <rmariano@u.washington.edu>
Subject: # Need help with perl script
Message-Id: <Pine.OSF.3.95.970317000332.27604A-100000@saul4.u.washington.edu>
I'm hoping some of you perl experts can help a novice out...
Right now I have a perl script that processes a typical HTML form on a web
page. Basically, it takes the info from the form, dumps it to a file, and
e-mails me the form data. What I'm trying to figure out is how to generate
and assign a unique "serial number" for each person who submits a form.
This serial number will basically be a way for me to make corrsepondence
more manageable.
Please e-mail me if you have can help me out.
Ramon
rmariano@u.washington.edu
------------------------------
Date: 16 Mar 1997 22:53:11 -0800
From: blm@halcyon.com (Brian L. Matthews)
Subject: Re: [HELP] !@#$% sort subroutines...
Message-Id: <5gipon$r6g$1@halcyon.com>
In article <omybbn16ek.fsf@tees.cs.ualberta.ca>,
Vladimir Alexiev <vladimir@cs.ualberta.ca> wrote:
|In article <Pine.GSO.3.95q.970314192555.11801F-100000@linda.teleport.com> Tom Phoenix <rootbeer@teleport.com> writes:
|> Start with '0..$#_'. That's a list of the indices of the @_ array.
|Hey, shouldn't this be 0..$#_-1 ?
No. $#identifier is the last index of @identifier, so $#_ is the last
index of @_, and 0..$#_ is a list of all the indices of @_.
Brian
--
Brian L. Matthews Illustration Works, Inc.
For top quality, stock commercial illustration, visit:
http://www.halcyon.com/artstock
------------------------------
Date: 17 Mar 1997 03:49:32 -0800
From: mconst@soda.CSUA.Berkeley.EDU (Michael Constant)
Subject: Re: [Q] userid in a client/server environment
Message-Id: <5gjb4c$qq3@soda.CSUA.Berkeley.EDU>
Tan Tran <ttran@micro.ti.com> wrote:
>I have a server process (owned by a particular useid) running on a remote
>host. The client process is invoked (by another userid) that communicates
>with the server via TCP/IP socket. The client sends a command to the server
>to be executed.
>
>My question is how can I make the server execute the command from the client
>using the userid of the person invoking the client process ?
>
>Is there any "su"-like function in perl ?
It depends whether your server is running as root or not. If the
server runs as root, you can manipulate your real and effective
userids by playing with the $< and $> variables, respectively:
$> = $< = $new_userid;
will set your real and effective userids to $new_userid. See the
perlvar(1) manpage for more information.
You can also call the regular su program from perl:
open SU, "|su $username";
print SU $command;
Of course, for both of these methods, you must have some way of
figuring out $username or $new_userid securely. ($command does
not need to be secure, since it is executed as the user.)
If the server doesn't run as root, it's trickier. Assuming you
have the user's password, you could use a pty to pass the user's
password to su; but this would be a little ugly to implement in
perl. It might be easiest to write a small C program that takes
a username and password on standard input, and does the necessary
pty manipulation to pass them to su. You could then call the C
program easily from perl, just like the su example above.
Please let me know if I didn't answer your question; I'm not sure
exactly what you're trying to do.
--
Michael Constant (mconst@soda.csua.berkeley.edu)
------------------------------
Date: 17 Mar 1997 05:36:12 GMT
From: Darryl Caldwell <darrylc@eznet.com>
Subject: Re: [Q]Manipulating hash values --epilogue
Message-Id: <5gil8c$ffk$1@pepper.eznet.com>
About an 20 minutes after I posted the above, I came up with a Perl
"babytalk" way to get the job done involving join (), a temp file, a new
hash that repeats the work of my earlier one. Tim Toady rules, I guess.
I'm glad to see one that is far more efficient -- this little task was
drying me bananas. Thanks.
Darryl Caldwell Oikiasuchou School
___________________________________________________
The Practice Hall: http://www.eznet.com/bravo/ph/ph.html
Myth & Martial Culture
------------------------------
Date: 17 Mar 1997 14:53:15 +0500
From: Mohan Das <mohan@sapna.india.hp.com>
Subject: Re: [Q]Manipulating hash values
Message-Id: <t53209e975g.fsf@sapna.india.hp.com>
Darryl Caldwell <darrylc@eznet.com> writes:
>
> Nature of hashes?
>
> I've created a hash that gives me the following output:
>
> key value
> --- -----
> 99205 5
> 80832 1
> 99229 1
> 83816 2
> 99004 1
> 99006 8
>
> and so on. Is there a way (via array or hash) to add the values of the
> keys with matching first 3 digits into one amount? For example:
>
> key value
> --- -----
> 992 6
> 808 1
> 838 2
> 990 9
for $key (keys %hash) {
$key =~ m/^(...).*/;
$sum{$1} += $hash{$key};
}
for $key (sort keys %sum) {print "$key => $sum{$key}\n";}
Mohan
> Thanks in advance.
>
> Darryl Caldwell
--
------------------------------
Date: Sun, 16 Mar 1997 22:40:09 -0500
From: fl_aggie@hotmail.com (I R A Aggie)
Subject: Re: AntiSPAM is as bad as SPAM (was Can you help me with this script?)
Message-Id: <fl_aggie-ya02408000R1603972240090001@news.fsu.edu>
In article <3326EB3A.6772@egames.com>, dbenhur@egames.com wrote:
+ I use a real address and I'm a frequent USENET
+ poster, but I get at least as many bounced replies
+ from my courtesy responces to anti-spam addressees
+ as I get actual spam from bulk emailers.
Uh, *that* can be fixed real fast, if you like...
Once you've gotten more spam in a day than legit email, you'll understand.
Currently, some joker has decided that it's real funny to put my hotmail.com
address out in the alt.business.* newsgroups. So far, spam from that is
running 5-1.
James
--
Consulting Minster for Consultants, DNRC
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>
------------------------------
Date: 17 Mar 1997 05:45:08 GMT
From: "Bill Dunn" <bildun@vci.net>
Subject: Re: How do I get all more than 2 hours old files
Message-Id: <01bc2f67$c589a340$8f81cecf@p133.bildun.com>
If you are on a Unix system you can use the system command called "find".
It has a some switches that allow you to specify only files that are
minutes old or hours old. And if it does find some files you can execute
commands on those files. The file /etc/crontab has some excellent examples
of this.
Ronak Bhatt <rbhatt@netscape.com> wrote in article
<3326E50B.1CB0@netscape.com>...
> How would I get the filenames, that were created before two hours ( when
the script is run).
------------------------------
Date: Mon, 17 Mar 1997 09:34:05 +0000
From: Phillip Summers <x741056@tiuk.ti.com>
Subject: Re: How do I make the <STDIN> invisible?
Message-Id: <332D100D.6853@tiuk.ti.com>
Tom Christiansen wrote:
> In comp.lang.perl.misc, ajmurray@teleport.com (Your Name) writes:
> :I want to have some sort of password thing, and I want the input to be invisble.
---snip
Is there any way to do this in perl for DOS (Yeah I know, I know, but it
beats writing batch files!)
I know you can use ioctl, but is there a version of Perl for DOS that
supports ioctl?
Cheers
Phil Summers
------------------------------
Date: 16 Mar 1997 22:47:15 -0800
From: mconst@soda.CSUA.Berkeley.EDU (Michael Constant)
Subject: Re: Knowing the pid of a fork()'ed child, really
Message-Id: <5gipdj$d8u@soda.CSUA.Berkeley.EDU>
Elliott McCrory <mccrory@fnal.gov> writes:
> [...] exec() does not *always* make the process run under the same pid #
> as what the fork returns. For example, if you do `exec("some-process
> 2>errorlog")` (which is exactly the sort of thing I need to do,
> otherwise the STDERR messages from some-process get spewed around the
> system), exec() recognizes the ">" shell metacharacter and says "sh -c
> some-process 2>errorlog" (in this case), creating a new pid number.
Jason Austin already posted explaining how to do this without invoking
a shell. An alternative is to let the shell do all of your work for you:
$pid = `some-process >errorlog 2>&1 & echo \$!`;
The & runs some-process in the background, and $! asks the shell for the
pid of some-process; the \ is to prevent perl from trying to expand $!.
--
Michael Constant (mconst@soda.csua.berkeley.edu)
------------------------------
Date: 17 Mar 1997 11:37:48 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: Min (or Max) function? Is there such a beast?
Message-Id: <5gjaec$7lo@lyra.csx.cam.ac.uk>
In article <332CB420.6263@tibinc.com>, Bill Cowan <billc@tibinc.com> wrote:
>I assume you mean "min/max for an array".
>
>Min or Max function is not built-in to Perl. Because an array may
>contain numbers and/or strings (or dates represented as strings), you do
>not know the datatype so you can not make the proper comparison.
>
>Please see doc about sort() about sorting strings versus numbers. And as
>simple basis to write your own min/max funcition on the sorted result.
Don't do a sort to find the min and/or max. Sort takes O(n*log n)
operations and has much more overhead; min/max require a simple scan
over the array and take O(n) operations.
A loop something like this should do it:
my $max = my $min = $array[0];
foreach (@array) {
$max = $_ if $max < $_;
$min = $_ if $min > $_;
};
Mike Guy
------------------------------
Date: Mon, 17 Mar 1997 08:59:10 +0000
From: Roberto Fabbri <roberto.fabbri@provincia.bz.it>
Subject: Module for handling of Passwd files
Message-Id: <332D07DE.6277@provincia.bz.it>
Is there a module to handle passwd files (in particular I need to insert
entries in a passwd file). Thanks in advance.
Ciao, Roberto.
------------------------------
Date: 17 Mar 1997 11:27:36 GMT
From: gml4410@ggr.co.uk (Lack Mr G M)
Subject: Re: Numeric function
Message-Id: <5gj9r8$d2f@ukwsv3.ggr.co.uk>
In article <5g9uef$2db$1@csnews.cs.colorado.edu>, Tom Christiansen <tchrist@mox.perl.com> writes:
|> [courtesy cc of this posting sent to cited author via email]
|>
|> In comp.lang.perl.misc,
|> somsky@dirac.phys.washington.edu (William R. Somsky) writes:
|> :Yep. The simple \d+ -> \d* transformation won't do what you want.
|> :If you want .2 to be acceptable, then what you'll want is something like:
|> :
|> : warn "not a decimal number" unless /^[+-]?(\d+\.?\d*|\.\d+)$/
|>
|> Based on Jeffrey's suggestions, how about this:
|>
|> /^-?(?:\d+(?:\.\d*)?|\.\d+)$/
|>
|> I don't count a leading + as part of a valid number, intentionally.
The following does it with no "alternatives": it just ensures there
was a digit. (And why would you not count a leading + as part of a
valid number? Have you never used Fortran?!).
warn "not a decimal number" unless /^[+-]?(\d*)\.?(\d*)$/ && "$1$2";
--
----------- Gordon Lack ----------------- gml4410@ggr.co.uk ------------
The contents of this message *may* reflect my personal opinion. They are
*not* intended to reflect those of my employer, or anyone else.
------------------------------
Date: Sat, 15 Mar 1997 00:49:36 -0500
From: Joyce <jbulwinkle@geocities.com>
Subject: Other OS's.. Re: Who cares? Re: Who makes more $$ - Windows vs. Unix programmers?
Message-Id: <3f7cd$03310.100@NEWS>
Who the hell wrote this?? What do you think that just because it has 500
CPU's and... oh wow terabytes of space... Call me when you fill that
thing up with networking programs... I would go with Unix anyway because
it is dynamic, simple and there are no complaints to the advanced
user... Oh yeah and another thing.... it doesn't cost $800,000!!! You
must be a huge company to run that one. I like to point out that Win95
sucks and the only reason it is big is because software developers
target that OS. If Win 97 will be backward compat. and it has some great
features, then it might turn out to be great. Does anyone have any
follow-ups on Win 97? If so please reply-news
Dan
Da Borg wrote:
>
> Jeremy Schwartz wrote:
> .........
> > Your all wrong, neither unix or NT/95 are techincally advanced. Show me
> > a unix box or even a dozen unix boxes that can compete with an ESA/MVS
> > box.
>
> How about a $800,000 Cray with 128 liquid cooled CPUs and
> terabytes of storage? Takes up a whole room and runs.. yes, Unicos,
> a Unix flavour of SYSV family. Although huge, it is still a box
> because it looked pretty square last time I looked at it.
>
> > And anyways, this whole discussion is kinda getting away from the
> > original topic isn't it?
>
> How interesting to watch everyone replying to this trolling
> thread (yes, me too) and noticing between the lines that it
> is "kinda off-topic"? :) I, at least, delete New York foods
> and miscellaneous jobs from the crossposts.
>
> > From past experience, I have seen unix programmers get much more money
> > than windows programmers. As much as 50K more. Not only that but I
> > would venture to say that the high price windows programmer is not much
> > more that a fad, as far as how long the market will keep the inflated
> > prices for windows programmers as high as they are.
>
> I think, overall, Unix is easier to program then Dos/Windows,
> as long as you don't have to deal with Xlib and Motif which is
> kinda complicated.
>
> --
> When sending private email, please remove underscores in "vladi_mip".
> #include <disclaimer.h> | *Good pings come in small packets*
> vladimip @ uniserve.com | Ceterum censeo Microsoftam delendam esse
> Vancouver, B.C. | SIGSIG -- signature too long (core dumped)
------------------------------
Date: Sun, 16 Mar 1997 20:34:59 -0800
From: Devin Ben-Hur <dbenhur@egames.com>
To: Dave Bushong <NOJUNKMAILbushong@bigger.com>
Subject: Re: Q: Good Perl Book
Message-Id: <332CC9F3.A7D@egames.com>
[mail&post]
Dave Bushong wrote:
> I taught myself C in 1982 from K&R. The text was concise, accurate,
> and dependable. Plus a little humor. Not bad for a seven-dollar
> book.
Me too, only I think it was 1980.
> I tried to teach myself Perl in '96 with PP from W&C&S, but there are
> so many inane and distracting footnotes, inside jokes, "sort of"
> comments, and geek humor, that I would have to recommend it as a
> reference, but not as a learning resource.
And I would disagree.
I did teach myself Perl from the Camel in 1995
and I found it to be easy, accurate, and concise enough.
I found the humor and footnotes enriching and not
distracting.
There are lots of different people in the world and
nothing is going to work for everyone. As language
"bibles" go, the Camel is pretty good. It could be
a better reference and it could be a better tutorial,
but my experience is that it's more than adequate as
both (assuming the reader has some programming
background coming in).
I've run into more people that had trouble with
K&R as a learning tool than had trouble with PP.
On the other hand, there are many more well-executed
alternatives to K&R than there are alternatives to
the camel. Most of the Perl books I've looked at
are at best mediocre and at worse atrociously bad
(rushed, disorganized, inaccurate, dense, and
clumsy).
--
Devin Ben-Hur <dbenhur@egames.com>
eGames.com, Inc. http://www.egames.com/
eMarketing, Inc. http://www.emarket.com/
"Sometimes you just have to step in it and see if it stinks" O-
-- Sonia Orin Lyris
------------------------------
Date: 17 Mar 1997 09:43:21 GMT
From: "Harry Kas" <harry@bci.se>
Subject: Q: How can I read the full pathname
Message-Id: <01bc32b7$81959880$150464c3@bci>
I should like to get a list of all the files in my directory and in all its
subdirectories, with full pathname.
Does somebody knows a good method, using 'Readdir'?
I should get as result the full pathname, e.g. /usr/test, /usr/test2,
/usr/user2/test.
--
Harry Kas - BCi Sweden
tel +46-8-540 650 60
fax +46-8-540 69318
harry@bci.se
------------------------------
Date: 17 Mar 1997 02:23:43 -0800
From: mconst@soda.CSUA.Berkeley.EDU (Michael Constant)
Subject: Re: Reg Ex help
Message-Id: <5gj63f$ol1@soda.CSUA.Berkeley.EDU>
Dave Thomas <Dave@Thomases.com> wrote:
>On Fri, 14 Mar 1997 09:53:33 -0500, Fred Fenimore wrote:
>> $body = "\s*([^_]+)";
>> "(_MRK:ssdef\s*([^=]*)=($alignMark|$faceMark|$sizeMark|$fontMark){4,}\_)";
>
>$alignMark seems to be missing. If I add it, then the match succeeds.
While this makes the match appear to work, there's another problem:
you're using \s in a double-quoted string, so the backslash gets eaten
and all perl sees in the regexp is the letter "s". You should add an
extra backslash in front of each \s in your double-quotes strings.
(The same could be said of your \_ characters, although this one is
not so important because _ is not (yet) a regexp metacharacter.)
--
Michael Constant (mconst@soda.csua.berkeley.edu)
------------------------------
Date: Mon, 17 Mar 1997 06:11:12 GMT
From: Craig Humphrey <humphric@akcity.govt.nz>
Subject: SOLVED! was Re: Win32::ODBC & MS SQL Servers IMAGE data type, anyone used it?
Message-Id: <332CE080.4EB9@akcity.govt.nz>
Hi Dave,
Roth Consulting wrote:
> DOH! I was afraid this was going to happen. I am looking at implementing
> the ability to bind a perl variable to an SQL query. Something like...
> $db->Bind(\$Var);
> $db->Sql("Insert Into Images ( keyref, size, binary ) Values ($keyref,
> $inline_length, ?)");
>
> PLEASE don't hold me to this in syntax or even in implementation. I have no
> idea when I will find the time to do this.
>
> BTW: I am moving this weekend to start a new job and will no longer have my
> wonderfull & cheap cable modem connection to the Inet. My site will
> probably be down for awhile.
Well I've solved it all since you wrote this (it's only just got to our
News Server!).
And you've got my code.
Later'ish
Craig
Good luck with the move, I moved the previous weekend ;-)
--
usagi@ihug.co.nz | My views and opinions are barely
humphric@akcity.govt.nz | my own, let alone that of my
usagi@ibm.net usagi@earthling.net | employer or ISP!
http://homepages.ihug.co.nz/~usagi | "Come to Butt-Head" - Butt-Head
------------------------------
Date: 16 Mar 1997 21:54:54 -0700
From: Vladimir Alexiev <vladimir@cs.ualberta.ca>
Subject: Re: Sorting help
Message-Id: <omwwr715k1.fsf@tees.cs.ualberta.ca>
In article <3329eefd.140372364@news.oz.net> tgy@chocobo.org (Tim Gim Yee) writes:
> # The *drum roll* Schwartzian Transform!
This is overly complex for the task at hand, but lest this powerful trick goes
unlearned by the masses, here's a reading of the mantras. (Any functional
programming grad students willing to write a thesis on that? Throw in some
monads, and you're all set! ;-)
# the below parses thus: map({},sort({},map({},@stuff))),
# so you should probably read bottom up.
> @sorted = map {$_->[0]} # return the 0th elem of the pair
> sort {$a->[1] cmp $b->[1]} # compare the 1st elems of the 2 pairs
> map {[$_, lc $_]} # pair every elem with its lc version,
# return an array of reference pairs.
> @stuff;
------------------------------
Date: 17 Mar 1997 11:47:29 +0100
From: Olivier Dehon <dehon_olivier@jpmorgan.com>
Subject: Re: String format
Message-Id: <njz67yqg5ha.fsf@jpmorgan.com>
hakan.gustafsson@varberg.mail.telia.com (Claes Gustafsson) writes:
>
> How do I print a number with three digits?
>
> 001,002,003...025,026
>
> instead of
>
> 1,2,3...25,26
>
> Claes Gustafsson
Try:
printf "%03d", $num;
supposing that your number is held in $num.
Hope this helps.
Olivier Dehon
------------------------------
Date: Mon, 17 Mar 1997 11:05:43 +0000
From: Douglas Seay <seay@absyss.fr>
To: Bernie Cosell <bernie@fantasyfarm.com>
Subject: Re: What language do Perl REs recognize?
Message-Id: <332D2587.5F06@absyss.fr>
Bernie Cosell wrote:
> ... Actually, it is harder than that, as far as I can see. Not only is
> it not "all the way", but I don't think you can *find* a CFG for Perl RE's
>
> For example, consider:
> /([abc]*)\1/
>
> You get a language that I can't see how to describe with a CFG. The
> language consists of two copies of strings from [abc]*.
>
> If you go back to automata theory, what this says is that you *cannot*
> recognize Perl REs with a pushdown automaton. When I took classes in all
> this stuff [a LOT of years ago], there wasn't any plateau above context
> free, and so that would imply that you need a full turing machine to
> recognize Perl REs. BUT: as has been noted, you can't even express simple
> 'balanced parens' or "nested if/then/else" in Perl REs.
IIRC, the Chomsky Hierarchy has the following levels
Regular Languages
Context Free Languages
Context Sensitive Languages
Turing Machine Languages
All Possible Languages
Each of which is a proper superset of the level above. The
backreference
is not regular, and I don't think that it is CF either. If so, this
little
oddball breaks the standard hierarchy.
> Where does that leave you? If it really is an incomparable class of
> languages, that's some language/automaton theory that has appeared since I
> went to school --- that languages form a lattice rather than nested
> subsets!
My non-theoretical attitude says that Perl has a RE+oddball feature(s).
Since
the Perl RE won't accept arbitrary CFG or CSG languages, I'd think that
the
theoretical types will reject Perl as being uninteresting, unless
someone
feels like generating a different (competing? alternate?) hierarchy than
the one Chomsky defined in the '50s. That sounds like a couple of
papers
and good name recognition for some PhD candidate.
But of course, if I bothered keeping up with automata theory, I might
find
out that this is old stuff. Nothing quite like re-inventing the wheel.
> Fascinating, and it also brings up the question of exactly what *is* the
> power of the automaton that recognizes Perl's REs. If it recognizes some
> langauges that are beyond context-free, does that mean that the _automaton_
> is powerful enough to do CF languages, and so all we need to do is figure
> out some simple extension ['simple' in the same way that the backreference
> machinery is conceptually simple to describe] that'd make Perl RE's include
> the context free languages? AND then there's the next step: If perl REs
> are already beyond CF and so on-the-way to CS, is there some additional
> "simple" extension to REs that'd make them full-blown context sensitive??
I wouldn't think so. To accept all CFGs (much less CSGs) the RE syntax
would
have to change beyond recognition. For things like that, I remain
thankful
that there is a version of yacc that outputs Perl.
doug seay
[cc sent to poster]
------------------------------
Date: 17 Mar 1997 08:38:56 +0100
From: Ronald Fischer <rfi@uebemc.siemens.de>
Subject: Re: What's wrong with "an email" (was: How to spam - legitimately)
Message-Id: <xz2hgibnf1r.fsf@uebemc.siemens.de>
(this message posted AND mailed)
>>>>> On 14 Mar 1997 16:34:23 GMT
>>>>> "Tom" == Tom Christiansen <tchrist@mox.perl.com> wrote:
Tom> I have come to believe that the linguistic dissonance we're experiencing
Tom> is rooted in this: that the American mass media, a body congenitally
Tom> devoid of all semblance of clue and subtlely, have insistently pushed the
Tom> nontechnical masses on the internet bandwagon, and in so doing, they have
Tom> unknowingly mangled an established term.
And they may succeed. In German, you could observe a similar
phenomenon. For exammple, the German word for "taxi" or "cab" is
'Taxi', while the German word for the fare you pay in the cab is
'Taxe'. For whatever reason, you often hear people use 'Taxe' instead
of 'Taxi', as if they rode the fare intead of the cab. This nonsense
could be read in mass media and movies, and today this usage is even
in the dictionary and therefore sanctionized [hope that I got this
word right :-)] and part of the language. I wouldn't be surprised if
the same eventually happens to the English terms "mail" and "email".
Tom> Once upon a time there was (well, and still to this day remains) the term
Tom> "pseudointellectual", generally used for a person prone to sputter the buzz
Tom> words and name-dropping reminiscent of the so-called intelligentsia,
Tom> yet without any profound understanding of the terms they were
Tom> employing.
As you can see even in computer magazines like Byte etc. where they
often say "X Windows" when they mean "The X Window System"...
--
Ronald Otto Valentin Fischer
business: ronald.fischer@uebemc.siemens.de
private: ronald.fischer@acm.org
http://ourworld.compuserve.com/homepages/ronald_fischer
------------------------------
Date: 17 Mar 1997 10:17:33 +0100
From: =?ISO-8859-1?Q?=22Peter=A0Br=FClls=22?= <pb@ecce-terram.de>
Subject: Re: What's wrong with "an email"
Message-Id: <5gj25j$sfd@news.Informatik.Uni-Oldenburg.DE>
marti@netrail.net (Dennis Marti)
>
> Matt "Or at least not until Ebonics meats Cybonics..." Kruse wrote:
>
>> Just be happy that on Internet we don't have to hear people "axe"
>> questions. :)
[...]
> This one was posted to comp.lang.c:
>
>> But feel free to aks your wuestions concerning the standard C language
>> here.
>
> Although, to be fair, it was posted by someone with a .de email address.
Actually, apart from the German-influenced wording, I see just typos,
where you see errors. That happens all the time.
Now, if someone could explain to all these native speakers that
there's a distinct difference between ``there'' and ``their's'' or
``piece'' and ``peace'', I'd be /very/ happy.
Oh, and shoot all Germans who construct the plural by adding \'s to
each word. Please.
------------------------------
Date: 17 Mar 1997 05:14:29 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Why does string comparison use signed chars?
Message-Id: <5gijvl$mc3$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
Vladimir Alexiev <vladimir@cs.ualberta.ca> writes:
:Is there any particular reason string comparison (cmp, lt, le, etc) uses
:signed chars? I'm manipulating a dictionary and I want '.' to collate before
:any letter (as is customary). However, it contains some foreign letters with
:8-bit set, and it thinks these come eralier than '.'. Is there a way to tune
:cmp etc?
http://www.perl.com/perl/nmanual/pod/perllocale.html
--tom
--
Tom Christiansen tchrist@jhereg.perl.com
Ken is very smart but also very opinionated. --Doug Gwyn
------------------------------
Date: Mon, 17 Mar 1997 06:16:06 GMT
From: Craig Humphrey <humphric@akcity.govt.nz>
Subject: Re: Win32/ODBC
Message-Id: <332CE1A6.57D8@akcity.govt.nz>
Hi Brian,
Brian Shepard wrote:
> Does anybody know if Perl/ODBC can be used without putting the files in
> their appropiate spot but rather in my CGI bin. The server that I'm using
> won't install ODBC files for me.
Do you mean the Perl Win32::ODBC files? Or an Access .mdb file or what?
> Anybody have a solution??
If you have perl installed properly, then you shoul be able to add the
Win32::ODBC files no problem.
Later'ish
Craig
--
usagi@ihug.co.nz | My views and opinions are barely
humphric@akcity.govt.nz | my own, let alone that of my
usagi@ibm.net usagi@earthling.net | employer or ISP!
http://homepages.ihug.co.nz/~usagi | "Come to Butt-Head" - Butt-Head
------------------------------
Date: 12 Mar 97 10:33:21 GMT
From: mbsprog@idirect.com (Year2000 Information Network)
Subject: Year2000 Conference: Toronto
Message-Id: <331D27CB.58EC@idirect.com>
The Year2000 Information Network ("Network") in partnership
with DCI, the largest US-based provider of conferences and
exhibitions to the IT community, has recently formed a Year2000
Conference & Seminar Series for the Province of Ontario.
The objective of the "Series" is to share Year2000 methodologies,
strategies and conversion techniques as well as supply project
managers with the information they need to manage Year2000 projects.
(11 events are planned for 1997 at the Metro Toronto Convention Centre
and the Howard Johnson Hotel).
As an attendee you'll receive a free report that lists over 100
programmers
and managers who would like to work on Year2000 projects and or
provide their services as professional speakers/lecturers. If you would
like to be added to this list please let us know.
More information at http://web.idirect.com/~mbsprog
ATTENDANCE:
250 to 500 attendees are expected at each monthly Year2000
seminar or conference.
10,000 IT professionals are expected to attend
DCI's Database & Client/Server World Expo at the Metro
Toronto Convention Centre. Be sure to visit the Year2000
Information Network Pavilion on the Expo floor and the
Year2000 conferences downstairs.
WHEN:
March Event:
The next event will be held on March 24, 1997, 12:00 pm -
5:00 pm at the Howard Johnson, Weston Ballroom, 2737
Keele Street, North York, (At Keele & 401, North of the 401).
Cost: $25.
April Event:
The April event will be held at the Metro Toronto
Convention Centre as part of DCI's Database & Client/Server
World in Toronto, April 15-17. Cost: $40
Full day conferences are planned for May, June, July, August,
September, October & November, 1997.
SPEAKERS:
Speakers include Peter de Jager, Kenn Orr, Andre Lefreneure,
Leland Freeman, Girard Pedley, Jim Wood, Hiroo Tadaney,
Pat Brooks, Gord Stein, etc...
SPONSORS:
DCI, Transition Software, Miasoft Inc, Challenge 2000 Inc,
Year2000 Information Network, Look Multimedia Inc., Xpress
Software Inc., Contractors Network Corporation, Sterling Software,
Transformation Systems Inc., Microm Management Accountants, MBS
Program, National Computer Consulting, etc...
REGISTRATION:
Please complete and fax the form below to (905) 819-8013.
Call (905) 454-8577 or (416) 650-9475 to register. Email to
mbsprog@idirect.com. Register online at
http://web.idirect.com/~mbsprog/y2kfree.html
Name: _______________________________________
Title: _________________________________________
Number of Attendees: ____________________________
Company: _____________________________________
Tel: __________________________________________
Fax: _________________________________________
Email: ________________________________________
For more information point your web browser
to http://web.idirect.com/~mbsprog
___________________________________________________
YEAR2000 SEMINARS, CONFERENCE & EXPO SERIES
10,000 plus IT decision makers expected - Visit the Year2000
Information Network Pavilion. Sponsored by DCI and the
Year2000 Information Network.
March 24, 1997 Howard Johnson Hotel - Toronto
April 15 - 17, 1997 Metro Toronto Convention Centre
Tel: (416) 650-9475 http://web.idirect.com/~mbsprog
Tel: (905) 454-8577 mbsprog@idirect.com
Fax: (905) 819-8013 year2000@interlog.com
------------------------------
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 130
*************************************