[25307] in Perl-Users-Digest
Perl-Users Digest, Issue: 7552 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Dec 22 11:11:05 2004
Date: Wed, 22 Dec 2004 08:10:14 -0800 (PST)
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, 22 Dec 2004 Volume: 10 Number: 7552
Today's topics:
Re: Is zero even or odd? <bik.mido@tiscalinet.it>
Re: Is zero even or odd? <invalid@msgid.michael.mendelsohn.de>
Re: Is zero even or odd? <yd.techHAT@techie.com>
Re: Is zero even or odd? <dak@gnu.org>
Re: Is zero even or odd? <shawn.corey@sympatico.ca>
Re: Is zero even or odd? <chichess@beforeRCNafter.com>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <spikeywan@bigfoot.com>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <hadrainc@earthlink.net>
Re: Is zero even or odd? <jmw@jmwa.demon.contraspam.yuk>
Re: Is zero even or odd? <see@sig.com>
Re: Is zero even or odd? <nowhere@nowhere.net>
Re: Is zero even or odd? <dak@gnu.org>
Re: Is zero even or odd? <salesEXTRACT@anasoft.co.uk>
Re: Is zero even or odd? <salesEXTRACT@anasoft.co.uk>
Re: Is zero even or odd? <do-not-use@invalid.net>
need help in programming linux with perl <lie_huo@hotmail.com>
Re: need help in programming linux with perl <no@email.com>
newbie question...can't die..whod a thunk it? <bbeaman2@cox.net>
Re: newbie question...can't die..whod a thunk it? (Anno Siegel)
Re: newbie question...can't die..whod a thunk it? <zen13097@zen.co.uk>
Re: newbie question...can't die..whod a thunk it? <noreply@gunnar.cc>
Re: Newbie question <x3v0-usenet@yahoo.com>
Re: selecting STDOUT AND STDERR <bill@gites.org.uk>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 22 Dec 2004 08:33:26 +0100
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: Is zero even or odd?
Message-Id: <kj8sru8s9ogmqfkp28m9f81d913hm1hb3u@4ax.com>
On Mon, 20 Dec 2004 14:21:11 -0000, Gactimus <gactimus@xrs.net> wrote:
>Subject: Is zero even or odd?
Yes it is!
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Wed, 22 Dec 2004 09:23:58 +0100
From: Michael Mendelsohn <invalid@msgid.michael.mendelsohn.de>
Subject: Re: Is zero even or odd?
Message-Id: <41C92F1E.4146E7FD@msgid.michael.mendelsohn.de>
John Woodgate schrieb:
> I read in sci.electronics.design that Nicholas O. Lindan <see@sig.com>
>
> >Slightly OT, is there an accepted ASCII-gram for square root?
>
> I've seen v/(x) used; it's fairly evident what it means. I just found
> that decimal 175 is an 'overscore' character, ¯, which means that v/¯(x)
> could be used.
I suggest
²v¯(a+b) = v¯(a+b) = (a+b)^(1/2) = (a+b)^½ = sqrt(a+b)
³v¯(a+b) = (a+b)^(1/3)
The ASCII-grams have the worst readability of the bunch, IMO.
Cheers
Michael
--
Still an attentive ear he lent Her speech hath caused this pain
But could not fathom what she meant Easier I count it to explain
She was not deep, nor eloquent. The jargon of the howling main
-- from Lewis Carroll: The Three Usenet Trolls
------------------------------
Date: Wed, 22 Dec 2004 07:26:13 -0300
From: YD <yd.techHAT@techie.com>
Subject: Re: Is zero even or odd?
Message-Id: <koiis0dkltn2j65kscolct561m971edl5f@4ax.com>
On Wed, 22 Dec 2004 04:09:21 +0000, John Woodgate
<jmw@jmwa.demon.contraspam.yuk> wrote:
>I read in sci.electronics.design that Nicholas O. Lindan <see@sig.com>
>wrote (in <zv4yd.7675$Z47.4756@newsread2.news.atl.earthlink.net>) about
>'Is zero even or odd?', on Wed, 22 Dec 2004:
>
>>Slightly OT, is there an accepted ASCII-gram for square root?
>
>I've seen v/(x) used; it's fairly evident what it means. I just found
>that decimal 175 is an 'overscore' character, ¯, which means that v/¯(x)
>could be used.
Not all newsreaders or fontsets may be able to render that correctly.
Though I doubt anyone is still using 7-bit ASCII.
>
>How about) for cube root?
There, you see? It became a ) for me.
- YD.
--
Remove HAT if replying by mail.
------------------------------
Date: Wed, 22 Dec 2004 11:11:19 +0100
From: David Kastrup <dak@gnu.org>
Subject: Re: Is zero even or odd?
Message-Id: <x5zn064p88.fsf@lola.goethe.zz>
Willem <willem@stack.nl> writes:
> ) "Franz Heymann" <notfranz.heymann@btopenworld.com> wrote in message
> ) news:cqab4k$7m1$6@sparta.btinternet.com...
> ) <snip>
> )> If you knew any maths worth talking about, you would have known that
> )> sin(0) / 0 is not the same as the limit of sin(x) / x as x tends to 0.
> )> The first is undefined and the second is unity.
>
> Tam/WB2TT wrote:
>
> ) Tell that to all the book publishers who print curves for sinx/x.
>
> If you zoom in on those printed curves far enough, you'll notice
> that there is no ink at the actual point (0,1).
Exactly at 0 (and nowhere else), there is a vertical smear from
roadkill. If you ever wondered where Schrödinger's cat ended up after
all, this is it.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
------------------------------
Date: Wed, 22 Dec 2004 07:18:34 -0500
From: Shawn Corey <shawn.corey@sympatico.ca>
Subject: Re: Is zero even or odd?
Message-Id: <wBdyd.10298$Z%3.634233@news20.bellglobal.com>
Richard S Beckett wrote:
>>>Nicholas O. Lindan wrote:
>>>
>>>>1 + 1 = 0/0 + 0/0 = (0 + 0)/0 = 2 * 0/0 = 2
>>>>
>>>
>>> a = b
>>> a^2 = ab
>>> a^2 - b^2 = ab - b^2
>>>(a+b)(a-b) = b(a-b)
>
>
> When you attempt to divide by zero, you get...
>
>
>>> a+b = b
>
>
> Division by zero error!
>
>
>>>but a = b
>>> a+a = a
>>> 2a = a
You missed one. The above implies a=0 therefore the next statement also
divides by zero.
>>> 2 = 1
>>>
>>>What could be clearer?
>
>
> Erm, dunno. Glass?
>
>
Don't you know sarcasm when you hear it?
--- Shawn
------------------------------
Date: Wed, 22 Dec 2004 07:23:14 -0600
From: "Bill Smythe" <chichess@beforeRCNafter.com>
Subject: Re: Is zero even or odd?
Message-Id: <kcCdnSQbjJQq6lTcRVn-jg@rcn.net>
"Gactimus" wrote:
> I know 0 is neither negative or positive but what about odd/even? I think
> it's even.
Of course it is. There exists a whole number X such that X*2=0. Thus, 0 is
even.
Bill Smythe
------------------------------
Date: Wed, 22 Dec 2004 13:56:07 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <7luis0ptcsi8cbs3k5qjqpj3h106k6calt@4ax.com>
On Mon, 20 Dec 2004 15:24:39 +0100, Josef Moellers
<josef.moellers@fujitsu-siemens.com> wrote:
>Gactimus wrote:
>> I know 0 is neither negative or positive but what about odd/even? I think
>> it's even.
>>
>> Odd numbers start at 1 and go every other number 1,3,5,7;1,-1,-3,-5,-7
>> Even starts at 2 and go every other number 2,4,6,8;2,0,-2,-4,-6,-8
>
>As it can be divided by 2 without a remainder, it is obviously even.
Er..., it can also be divided by every other number (rational,
irrational, and imaginary) without a remainder, although some of us
are amused by the strange concept of dividing nothing and the absurd
idea that there may be a `remainder'. Then comes the wild assertion
that when a number is divided by nothing, it becomes infinite.
------------------------------
Date: Wed, 22 Dec 2004 14:04:15 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <79vis01cj5jgfkdmsf49nbctor722kk1r8@4ax.com>
On Mon, 20 Dec 2004 14:34:03 -0000, BB <BB@BB.BB> wrote:
>The divisor would have to be something smaller than 0 like -2.
>Therefore zero is both even and negative.
Whoa! A new concept: -0. Let's make up some other numbers. I suggest
wizzad and fugawe. I'd have suggested Arunda, but I believe some
obscure African group already uses that in their alphabet.
------------------------------
Date: Wed, 22 Dec 2004 14:08:44 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <rmvis0tbevrfksf89mu5ef73s9cc79cgdj@4ax.com>
On 20 Dec 2004 07:02:45 -0800, merlyn@stonehenge.com (Randal L.
Schwartz) wrote:
>This is a troll. *Negative*? Can I have some of the drug you're
>smoking? :)
That's no good Randy, no matter how much you buy, you still have
nothing. Coincidentally with constant use the measurable IQ approaches
zero as a limit.
------------------------------
Date: Wed, 22 Dec 2004 14:12:02 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <iuvis019i9afhth7ui8gojpscfrnfgrciu@4ax.com>
On Mon, 20 Dec 2004 09:21:25 -0600, John Sefton <john@petcom.com>
wrote:
>Randal L. Schwartz wrote:
>>>>>>>"BB" == BB <BB@BB.BB> writes:
>>>>>>
>>
>> BB> The divisor would have to be something smaller than 0 like -2.
>> BB> Therefore zero is both even and negative.
>>
>> This is a troll. *Negative*? Can I have some of the drug you're
>> smoking? :)
>>
>
>It's not a prime, because a prime can
>only be divided by itself and 1.
>0 can't be divided by itself, but
>can be divided by everything else.
>An anti-prime?
>John
Perhaps a superprime. `antiprime' is as mysterious as - 0.
------------------------------
Date: Wed, 22 Dec 2004 14:19:44 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <h60js0haedvtl6nnmf0rqdj0h2ol36bgh6@4ax.com>
On Mon, 20 Dec 2004 15:36:15 GMT, "Nicholas O. Lindan" <see@sig.com>
wrote:
>"John Sefton" <john@petcom.com> wrote
>
>> 0 can't be divided by itself,
>
>Sure it can: 0 / 0 = 0 * (1 / 0) = 0 * infinity = 1
>
>It works if the only three numbers in the universe are
>0, 1, and infinity -- A number system that seems very
>suited to usenet.
Add to that the troubling thought that 1/0, 1/1, 0/1, and 0/0 are all
rational numbers. If 1/0 = `infinity' how do we decide if there is any
remainder? Looks like there should be a remainder of 1. If that is so,
how do we know it has really been divided by 0?
------------------------------
Date: Wed, 22 Dec 2004 14:24:59 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <7s0js0tu6h6o9o7gibltfkucgj375gkmai@4ax.com>
On Mon, 20 Dec 2004 22:19:46 +0000 (UTC), "Franz Heymann"
<notfranz.heymann@btopenworld.com> wrote:
>There is no lack of rigour in the definition of infinity. Read anbout
>the work of Cantor, Dedekind and others.
Do you have similar `readings' covering 0?
------------------------------
Date: Wed, 22 Dec 2004 14:27:48 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <rv0js09fv412de0e0ev8gnqidesff70ndt@4ax.com>
On Mon, 20 Dec 2004 15:43:59 -0500, Shawn Corey
<shawn.corey@sympatico.ca> wrote:
>Nicholas O. Lindan wrote:
>> "John Sefton" <john@petcom.com> wrote
>>
>>
>>>0 can't be divided by itself,
>>
>>
>> Sure it can: 0 / 0 = 0 * (1 / 0) = 0 * infinity = 1
>>
>> It works if the only three numbers in the universe are
>> 0, 1, and infinity -- A number system that seems very
>> suited to usenet.
>>
>
>Zero is even. You cannot divide by zero. Limits are not division.
>Infinity is not a number. Computers bugger up the system.
>
> --- Shawn
Shawn, I am equally convinced that it is neither even or odd. Though I
will admit that those who need to decide are rather odd.
------------------------------
Date: Wed, 22 Dec 2004 14:33:47 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <n61js0tmffd8pdsbk0uvg6qj6r6hpf768m@4ax.com>
On Mon, 20 Dec 2004 15:21:14 -0800, "Alfred Z. Newmane"
<a.newmane.remove@eastcoastcz.com> wrote:
>Except for the fact that: 0 / 0 = undefined
>
>Or actually more correct: n / 0 = undefined
Really, Al Z? Where did you get that doctorate in math? Various
middle eastern types have worked hard to see that was not the case.
------------------------------
Date: Wed, 22 Dec 2004 14:35:54 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <6g1js0hq28c3e8voli8jt7nh161gf7520j@4ax.com>
On Tue, 21 Dec 2004 01:08:55 GMT, Fred Bloggs <nospam@nospam.com>
wrote:
>
>
>Alfred Z. Newmane wrote:
>> Nicholas O. Lindan wrote:
>>
>>>"John Sefton" <john@petcom.com> wrote
>>>
>>>
>>>>0 can't be divided by itself,
>>>
>>>Sure it can: 0 / 0 = 0 * (1 / 0) = 0 * infinity = 1
>>>
>>>It works if the only three numbers in the universe are
>>>0, 1, and infinity -- A number system that seems very
>>>suited to usenet.
>>
>>
>> Except for the fact that: 0 / 0 = undefined
>>
>> Or actually more correct: n / 0 = undefined
>>
>>
>
>0/0={ SET OF ALL INTEGERS }
>
>n/0= NULL SET for n<>0
Why drag n <>0 into an otherwise friendly discussion.
>It is very well-defined.
------------------------------
Date: Wed, 22 Dec 2004 14:38:20 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <bk1js0pbesrhte5jbkri8n3fq98s244it7@4ax.com>
On Tue, 21 Dec 2004 07:08:11 GMT, "Kevin Aylward"
<salesEXTRACT@anasoft.co.uk> wrote:
>Fred Bloggs wrote:
>> Alfred Z. Newmane wrote:
>>> Nicholas O. Lindan wrote:
>>>
>>>> "John Sefton" <john@petcom.com> wrote
>>>>
>>>>
>>>>> 0 can't be divided by itself,
>>>>
>>>> Sure it can: 0 / 0 = 0 * (1 / 0) = 0 * infinity = 1
>>>>
>>>> It works if the only three numbers in the universe are
>>>> 0, 1, and infinity -- A number system that seems very
>>>> suited to usenet.
>>>
>>>
>>> Except for the fact that: 0 / 0 = undefined
>>>
>>> Or actually more correct: n / 0 = undefined
>>>
>>>
>>
>> 0/0={ SET OF ALL INTEGERS }
>
>No.
>
>>
>> n/0= NULL SET for n<>0
>>
>> It is very well-defined.
>
>No it isnt.
>
>Kevin Aylward
Now that you are in to definitions, what does `Aylward' mean?
------------------------------
Date: Wed, 22 Dec 2004 14:43:11 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <op1js0lul6ccphgi4fe5ubavrd07g0qqhd@4ax.com>
On Tue, 21 Dec 2004 10:37:35 GMT, Fred Bloggs <nospam@nospam.com>
wrote:
>
>
>Kevin Aylward wrote:
>> Fred Bloggs wrote:
>>
>>>Alfred Z. Newmane wrote:
>>>
>>>>Nicholas O. Lindan wrote:
>>>>
>>>>
>>>>>"John Sefton" <john@petcom.com> wrote
>>>>>
>>>>>
>>>>>
>>>>>>0 can't be divided by itself,
>>>>>
>>>>>Sure it can: 0 / 0 = 0 * (1 / 0) = 0 * infinity = 1
>>>>>
>>>>>It works if the only three numbers in the universe are
>>>>>0, 1, and infinity -- A number system that seems very
>>>>>suited to usenet.
>>>>
>>>>
>>>>Except for the fact that: 0 / 0 = undefined
>>>>
>>>>Or actually more correct: n / 0 = undefined
>>>>
>>>>
>>>
>>>0/0={ SET OF ALL INTEGERS }
>>
>>
>> No.
>>
>>
>>>n/0= NULL SET for n<>0
>>>
>>>It is very well-defined.
>>
>>
>> No it isnt.
>>
>> Kevin Aylward
>
>You apparently have stumbled on something else you know damn little
>about. In case you need help with this , you might note that "/" is NOT
>an operator on the integers, it is the "inverse" of a multiplication
>operator. Inverse is a well-defined concept but not necessarily a
>function, it is a set theoretic mapping. E.G. m/n={ q: m=q*n} by
>definition, so that m/n which is actually a set which can be empty, a
>singleton, or infinite. In the case of m/n, it is then m/n = F^-1(m)
>where F(x)= n*x. Your reasoning would lead one to believe /: I x I -> I
>is a function, which it isn't.
Ah, the inverse , like 1/0 is inverse of 0/1? Is 0/0 the inverse of
0/0? And 1/1, the inverse of 1/1.
------------------------------
Date: Wed, 22 Dec 2004 14:46:31 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <642js0529adl4s0cmpr1c69emvun2beboq@4ax.com>
On Tue, 21 Dec 2004 11:04:59 GMT, "Kevin Aylward"
<salesEXTRACT@anasoft.co.uk> wrote:
>Sure, you can have *another* meaning to the / operator in a different
>context, but this aint that context. This discussion is about a/b as
>usually understood in arithmetic.
a/b ? Now your getting into complicated stuff.
------------------------------
Date: Wed, 22 Dec 2004 14:14:13 -0000
From: "Richard S Beckett" <spikeywan@bigfoot.com>
Subject: Re: Is zero even or odd?
Message-Id: <cqbvl9$o9n$1@newshost.mot.com>
"Shawn Corey" <shawn.corey@sympatico.ca> wrote
> >>>What could be clearer?
> > Erm, dunno. Glass?
> Don't you know sarcasm when you hear it?
Nope! ;-)
------------------------------
Date: Wed, 22 Dec 2004 14:49:45 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <fa2js0pd4v6o2cp1c1j8kkn0vubhgaf7lu@4ax.com>
On Tue, 21 Dec 2004 10:39:22 -0500, "Richards Noah \(IFR LIT MET\)"
<Noah.Richards@infineon.com> wrote:
>You guys are arguing two different things. The argument that 0/0 is the set
>of all integers/reals/whatever you are using is the set theory response to
>the question. However, the more commonly used form is the algebraicly
>accepted argument that states that division is a function of the forms: Z /
>Z -> Q, R / R -> R, etc. In this definition, division by 0 is undefined for
>all Z or R, including 0. So, you are both correct, but arguing different
>things.
Then infinity is undefined?
------------------------------
Date: Wed, 22 Dec 2004 14:54:12 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <af2js0hj8fs5cjvah4cvljr2qb4q5otnup@4ax.com>
On Tue, 21 Dec 2004 10:40:32 GMT, Fred Bloggs <nospam@nospam.com>
wrote:
>Wrong- where do you get off saying (2*0)/0= 2*(0/0) ?
(2 x0)/0 = 2x(0/0) . there now is that better?
------------------------------
Date: Wed, 22 Dec 2004 14:58:35 GMT
From: vonroach <hadrainc@earthlink.net>
Subject: Re: Is zero even or odd?
Message-Id: <ro2js0tcpbq8t2nrevsqu0patpenhcb549@4ax.com>
On Wed, 22 Dec 2004 01:56:47 GMT, "Nicholas O. Lindan" <see@sig.com>
wrote:
>If I treat 0 as an imaginary number
Now you say 0= -1^1/2? You are using your imagination.
------------------------------
Date: Wed, 22 Dec 2004 14:59:18 +0000
From: John Woodgate <jmw@jmwa.demon.contraspam.yuk>
Subject: Re: Is zero even or odd?
Message-Id: <WrWgc+HGvYyBFwOH@jmwa.demon.co.uk>
I read in sci.electronics.design that Franz Heymann <notfranz.heymann@bt
openworld.com> wrote (in <cq7j61$6gm$2@sparta.btinternet.com>) about 'Is
zero even or odd?', on Mon, 20 Dec 2004:
>There is no lack of rigour in the definition of infinity. Read anbout
>the work of Cantor, Dedekind and others.
Indeed: I was referring to the lack of rigour in '1/0 = infinity'.
--
Regards, John Woodgate, OOO - Own Opinions Only.
The good news is that nothing is compulsory.
The bad news is that everything is prohibited.
http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk
------------------------------
Date: Wed, 22 Dec 2004 15:17:40 GMT
From: "Nicholas O. Lindan" <see@sig.com>
Subject: Re: Is zero even or odd?
Message-Id: <oegyd.8897$yK.550@newsread3.news.atl.earthlink.net>
"vonroach" <hadrainc@earthlink.net> wrote
> On Wed, 22 Dec 2004 01:56:47 GMT, "Nicholas O. Lindan" <see@sig.com>
> >If I treat 0 as an imaginary number
> Now you say 0= -1^1/2? You are using your imagination.
No, I think you are the first to say that, at least in this thread.
There are more imaginary numbers in the usenet than are counted
in your philosophy.
--
Nicholas O. Lindan, Cleveland, Ohio
Consulting Engineer: Electronics; Informatics; Photonics.
Remove spaces etc. to reply: n o lindan at net com dot com
psst.. want to buy an f-stop timer? nolindan.com/da/fstop/
------------------------------
Date: Wed, 22 Dec 2004 10:32:46 -0500
From: "robert j. kolker" <nowhere@nowhere.net>
Subject: Re: Is zero even or odd?
Message-Id: <32tid2F3n5bihU1@individual.net>
vonroach wrote:
> Er..., it can also be divided by every other number (rational,
> irrational, and imaginary) without a remainder,
irrelevent. The -definition- of an even integer is an integer equivalent
to zero mod 2. Given any integer k != 0 we can always find an even
multiple of k. We can also find an odd multiple of k.
Bob Kolker
------------------------------
Date: Wed, 22 Dec 2004 16:44:43 +0100
From: David Kastrup <dak@gnu.org>
Subject: Re: Is zero even or odd?
Message-Id: <x5d5x2jq1g.fsf@lola.goethe.zz>
vonroach <hadrainc@earthlink.net> writes:
> On Wed, 22 Dec 2004 01:56:47 GMT, "Nicholas O. Lindan" <see@sig.com>
> wrote:
>
>>If I treat 0 as an imaginary number
>
> Now you say 0= -1^1/2? You are using your imagination.
0 is even, but not odd, but it is _both_ a purely real and a purely
imaginary number. And it is the _only_ number that manages that feat.
Like f(x)=0 is the only function that manages the feat to be at the
same time an even and an odd function.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
------------------------------
Date: Wed, 22 Dec 2004 15:51:57 GMT
From: "Kevin Aylward" <salesEXTRACT@anasoft.co.uk>
Subject: Re: Is zero even or odd?
Message-Id: <xKgyd.2110$0W6.673@fe2.news.blueyonder.co.uk>
vonroach wrote:
> On Mon, 20 Dec 2004 14:34:03 -0000, BB <BB@BB.BB> wrote:
>
>> The divisor would have to be something smaller than 0 like -2.
>> Therefore zero is both even and negative.
>
> Whoa! A new concept: -0. Let's make up some other numbers. I suggest
> wizzad and fugawe. I'd have suggested Arunda, but I believe some
> obscure African group already uses that in their alphabet.
-0 often/usually signifies a limit approaching from the negative
direction.
Kevin Aylward
salesEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.
------------------------------
Date: Wed, 22 Dec 2004 15:52:43 GMT
From: "Kevin Aylward" <salesEXTRACT@anasoft.co.uk>
Subject: Re: Is zero even or odd?
Message-Id: <fLgyd.2114$0W6.1277@fe2.news.blueyonder.co.uk>
vonroach wrote:
> On Tue, 21 Dec 2004 07:08:11 GMT, "Kevin Aylward"
> <salesEXTRACT@anasoft.co.uk> wrote:
>
>> Fred Bloggs wrote:
>>> Alfred Z. Newmane wrote:
>>>> Nicholas O. Lindan wrote:
>>>>
>>>>> "John Sefton" <john@petcom.com> wrote
>>>>>
>>>>>
>>>>>> 0 can't be divided by itself,
>>>>>
>>>>> Sure it can: 0 / 0 = 0 * (1 / 0) = 0 * infinity = 1
>>>>>
>>>>> It works if the only three numbers in the universe are
>>>>> 0, 1, and infinity -- A number system that seems very
>>>>> suited to usenet.
>>>>
>>>>
>>>> Except for the fact that: 0 / 0 = undefined
>>>>
>>>> Or actually more correct: n / 0 = undefined
>>>>
>>>>
>>>
>>> 0/0={ SET OF ALL INTEGERS }
>>
>> No.
>>
>>>
>>> n/0= NULL SET for n<>0
>>>
>>> It is very well-defined.
>>
>> No it isnt.
>>
>> Kevin Aylward
> Now that you are in to definitions, what does `Aylward' mean?
"Warden of the King's Ale"
Kevin Aylward
salesEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.
------------------------------
Date: 22 Dec 2004 16:59:55 +0100
From: Arndt Jonasson <do-not-use@invalid.net>
Subject: Re: Is zero even or odd?
Message-Id: <yzd652ujpc4.fsf@invalid.net>
"Kevin Aylward" <salesEXTRACT@anasoft.co.uk> writes:
> vonroach wrote:
> > On Mon, 20 Dec 2004 14:34:03 -0000, BB <BB@BB.BB> wrote:
> >
> >> The divisor would have to be something smaller than 0 like -2.
> >> Therefore zero is both even and negative.
> >
> > Whoa! A new concept: -0. Let's make up some other numbers. I suggest
> > wizzad and fugawe. I'd have suggested Arunda, but I believe some
> > obscure African group already uses that in their alphabet.
>
> -0 often/usually signifies a limit approaching from the negative
> direction.
And in computing, there are representations of integers in binary that
have both a 0 and a -0. Of floating-point too, for that matter.
------------------------------
Date: Wed, 22 Dec 2004 09:25:29 -0500
From: "Roll" <lie_huo@hotmail.com>
Subject: need help in programming linux with perl
Message-Id: <059972638b42ea4f1d4fc9ece9ec0652@localhost.talkaboutprogramming.com>
hi ppl
i need to configure the linux dns, dhcp and iptables all that using a web
based control and i know that i could do so using perl programming.
basically what i need is to use perl to program out a cgi for me to edit
the .conf file of linux dhcp, dns and iptables using a webpage. can anyone
help me or give me or let me know if there is a guide for me to learn how
to do all this.
anyone who can help can email to me at lie_huo@htmail.com.
thanks to all those who help.
------------------------------
Date: Wed, 22 Dec 2004 14:30:39 -0000
From: "Brian Wakem" <no@email.com>
Subject: Re: need help in programming linux with perl
Message-Id: <32teofF3p4r1fU1@individual.net>
"Roll" <lie_huo@hotmail.com> wrote in message
news:059972638b42ea4f1d4fc9ece9ec0652@localhost.talkaboutprogramming.com...
> hi ppl
> i need to configure the linux dns, dhcp and iptables all that using a web
> based control and i know that i could do so using perl programming.
> basically what i need is to use perl to program out a cgi for me to edit
> the .conf file of linux dhcp, dns and iptables using a webpage. can anyone
> help me or give me or let me know if there is a guide for me to learn how
> to do all this.
>
> anyone who can help can email to me at lie_huo@htmail.com.
> thanks to all those who help.
Have you looked at Webmin?
http://www.webmin.com/
--
Brian Wakem
------------------------------
Date: Tue, 21 Dec 2004 22:32:17 -0600
From: "die" <bbeaman2@cox.net>
Subject: newbie question...can't die..whod a thunk it?
Message-Id: <pl9yd.394$4h.236@okepread03>
Is there any reason the script below should not print the message after
'die'?Thanks.
----------------------------------------------------
$var1='a';
$var2='b';
print"Content-type:text/html\n\n";
$var1 eq "$var2" or die "PERL die function\n";
----------------------------------------------------
------------------------------
Date: 22 Dec 2004 07:53:26 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: newbie question...can't die..whod a thunk it?
Message-Id: <cqb95m$nco$1@mamenchi.zrz.TU-Berlin.DE>
die <bbeaman2@cox.net> wrote in comp.lang.perl.misc:
> Is there any reason the script below should not print the message after
> 'die'?Thanks.
> ----------------------------------------------------
> $var1='a';
> $var2='b';
>
> print"Content-type:text/html\n\n";
>
> $var1 eq "$var2" or die "PERL die function\n";
> ----------------------------------------------------
No.
Anno
------------------------------
Date: 22 Dec 2004 08:46:42 GMT
From: Dave Weaver <zen13097@zen.co.uk>
Subject: Re: newbie question...can't die..whod a thunk it?
Message-Id: <41c93472$0$27242$db0fefd9@news.zen.co.uk>
On Tue, 21 Dec 2004 22:32:17 -0600, die <bbeaman2@cox.net> wrote:
> Is there any reason the script below should not print the message after
> 'die'?Thanks.
> ----------------------------------------------------
> $var1='a';
> $var2='b';
>
> print"Content-type:text/html\n\n";
>
> $var1 eq "$var2" or die "PERL die function\n";
> ----------------------------------------------------
No.
[davew@localhost tmp] $ perl
$var1='a';
$var2='b';
print"Content-type:text/html\n\n";
$var1 eq "$var2" or die "PERL die function\n";
__END__
Content-type:text/html
PERL die function
[davew@localhost tmp] $
Works as expected.
Is there any reason you expect it not to die?
------------------------------
Date: Wed, 22 Dec 2004 10:44:55 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: newbie question...can't die..whod a thunk it?
Message-Id: <32sv1oF3qmcrbU1@individual.net>
die wrote:
> Is there any reason the script below should not print the message after
> 'die'?Thanks.
> ----------------------------------------------------
> $var1='a';
> $var2='b';
>
> print"Content-type:text/html\n\n";
>
> $var1 eq "$var2" or die "PERL die function\n";
> ----------------------------------------------------
No. However, die statements are printed to STDERR by default, so if you
run the script from the browser, i.e. as a CGI script, you won't see the
message on the screen. To change that, you can add this line at the
beginning of the script:
use CGI::Carp 'fatalsToBrowser';
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Wed, 22 Dec 2004 09:42:41 -0500
From: Ken <x3v0-usenet@yahoo.com>
Subject: Re: Newbie question
Message-Id: <CJfyd.12008$FE.4169@fe37.usenetserver.com>
Tad McClellan wrote:
> Ken <x3v0-usenet@yahoo.com> wrote:
>
>>Dave Weaver wrote:
>>
>>>On Mon, 20 Dec 2004 09:37:47 -0500, Ken <x3v0-usenet@yahoo.com> wrote:
>>>
>>>
>>>>Try this instead:
>>>>
>>>>prepare();
>>>>
>>>>You can't call subroutines without the parentheses.
>>>
>>>
>>>Yes you can, as long as the sub has been defined before the call:
>
>
>
>>Cool I didn't know that. Still, probably not a good habit to get into.
>
>
>
> Why not?
>
>
I just think it can get confusing. When you put the empty (), you know
right away that it is a sub. Maybe it's just my own personal habit
though. Also, I have always put subs at the bottom of my script which is
probably why I've never tried calling a sub as a bare word.
So it's bad habit only because it could be confusing to someone else
reading your script. And because it looks weird ;).
------------------------------
Date: Wed, 22 Dec 2004 10:46:06 +0100
From: "Bill Parker" <bill@gites.org.uk>
Subject: Re: selecting STDOUT AND STDERR
Message-Id: <41c9425f$0$9538$8fcfb975@news.wanadoo.fr>
>> $stdout = select(LOG)
>> print "something\n";
>> select($stdout);
>
>
> What does that get you?
>
> Why not just
>
> print LOG "something\n";
>
> instead, with no select()ing required?
>
Because I don't necessarily know what is going to be output during the run
of the proggie, or what subcalls are going to generate any output. And as I
want it to write ALL it's output to a file, rather than (in my case anyway)
get lost by Windoze, a global redirect of STDOUT (and STDERR) is a
cheap'n'easy way for me to achieve it. It's a trick I use on shell
scripting, which also helps me keep the code looking a bit neater...
>
>> But can I exactly mimic the ksh/bash redirect of stderr as well as
>> stdout?
> ^^^^^^
>
> perldoc -q stderr
>
Hey, this works on Activestates perl and Windoze. Impressed am I! Thanks for
this tip. Complicated looking output - I may have to turn my brain on to
handle it :-} I need to make more use of perldoc, obviously.
> The very first sentence of
>
> perldoc -f die
>
> answers that.
Umm, not that I yet understand why but Activestate requires me to to
perldoc.bat -f die
before it works. But again, good tip. I DID actually mean "try and browse
the docm" rather than being lazy and stating "I'll test it" - as I said, me
being lazy over my typing.
Many thanks, very helpful
Bill
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
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.
#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 V10 Issue 7552
***************************************