[30788] in Perl-Users-Digest
Perl-Users Digest, Issue: 2033 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Dec 5 00:09:49 2008
Date: Thu, 4 Dec 2008 21:09:12 -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 Thu, 4 Dec 2008 Volume: 11 Number: 2033
Today's topics:
Re: a homework need help <tim@burlyhost.com>
Re: a homework need help <cwilbur@chromatico.net>
Re: a homework need help sln@netherlands.com
Re: a homework need help sln@netherlands.com
Re: a simple control in an nntp client sln@netherlands.com
Re: how detect english subject and predicate in a sente sln@netherlands.com
Re: how detect english subject and predicate in a sente (Randal L. Schwartz)
Re: how detect english subject and predicate in a sente <tim@burlyhost.com>
Re: how detect english subject and predicate in a sente <r.ted.byers@gmail.com>
Re: how detect english subject and predicate in a sente sln@netherlands.com
Re: how detect english subject and predicate in a sente sln@netherlands.com
Re: perl segfault - how to troubleshoot <tim@burlyhost.com>
Re: perl segfault - how to troubleshoot sln@netherlands.com
Re: perl segfault - how to troubleshoot <tim@burlyhost.com>
Re: sysread and syswrite analogy sln@netherlands.com
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 04 Dec 2008 18:26:23 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: a homework need help
Message-Id: <jj0_k.8756$yB4.4438@newsfe07.iad>
Camel wrote:
> I have no clue with my homework, can anyone help me?
>
What do you have so far? What have you tried?
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Thu, 04 Dec 2008 21:30:19 -0500
From: Charlton Wilbur <cwilbur@chromatico.net>
Subject: Re: a homework need help
Message-Id: <86bpvr73r8.fsf@mithril.chromatico.net>
>>>>> "C" == Camel <jiao_he@sbcglobal.net> writes:
C> I have no clue with my homework, can anyone help me? Three
C> digits "1,2,3", how many 3-digit numbers can be made? print all
C> the numbers
C> I know how to calculate the total numbers and using loop to print
C> all the numbers. The problem is how to write a generic program
C> that takes any number of digits. For example, if given
C> "1,2,3,4,5" digits, you still can use your program to print all
C> the combinations of 5-digit numbers without modifing it.
Recursion.
#!/usr/bin/perl
sub f
{
my ($p, @l) = ref $_[1] ? ($_[0], @{$_[1]}) : ('', @_);
return $_[0] if @l == 0;
return map { $p . $_ }
map { f(@$_) }
map { [ $::x = $_, [ grep { $::x ne $_ } @l ]] } @l;
}
print "12: ", join ('; ', f(1..2)), "\n";
print "12345: ", join ('; ', f(1..5)), "\n";
print "abc: ", join ('; ', f(qw/a b c/)), "\n";
(I strongly recommend against turning in this code. Your professor will
be able to tell you didn't write it.)
Charlton
--
Charlton Wilbur
cwilbur@chromatico.net
------------------------------
Date: Fri, 05 Dec 2008 03:32:56 GMT
From: sln@netherlands.com
Subject: Re: a homework need help
Message-Id: <p28hj49n7p6frk3un0tr5rb0tbeip02hjo@4ax.com>
On Thu, 04 Dec 2008 21:30:19 -0500, Charlton Wilbur <cwilbur@chromatico.net> wrote:
>>>>>> "C" == Camel <jiao_he@sbcglobal.net> writes:
>
> C> I have no clue with my homework, can anyone help me? Three
> C> digits "1,2,3", how many 3-digit numbers can be made? print all
> C> the numbers
Do you know number series? Can you describe mathmatically the relavent
expression? This is not a Perl issue.
sln
------------------------------
Date: Fri, 05 Dec 2008 03:44:32 GMT
From: sln@netherlands.com
Subject: Re: a homework need help
Message-Id: <ua8hj4lv1u2kn686as4fhjuomnjcn9h15g@4ax.com>
On Fri, 05 Dec 2008 03:32:56 GMT, sln@netherlands.com wrote:
>On Thu, 04 Dec 2008 21:30:19 -0500, Charlton Wilbur <cwilbur@chromatico.net> wrote:
>
>>>>>>> "C" == Camel <jiao_he@sbcglobal.net> writes:
>>
>> C> I have no clue with my homework, can anyone help me? Three
>> C> digits "1,2,3", how many 3-digit numbers can be made? print all
>> C> the numbers
>
>Do you know number series? Can you describe mathmatically the relavent
>expression? This is not a Perl issue.
>
Hey, you know once I used to be a mechanical engineer. On my first
job, it was told to me by some old timer drafter of a problem that
perplexed some minds there.
Seems there was a circle problem they couldn't solve without a nightmare
computer program.
The problem was as such:
There is a circle of unknown diameter, that needed to be divided into
3 equal horizontal areas (2 horizontal lines drawn).
I took out my pencil/paper wrote down every circle equation I knew,
grabbed my HP calculator (programmable) plugged in an itterative equation,
and solved in emphirically right there on the spot in 5 minutes.
From what I heard it took 4 weeks to write a program that took 8 hours to
do it (given a diameter).
So, whats the moral of the story?
sln
------------------------------
Date: Fri, 05 Dec 2008 03:57:42 GMT
From: sln@netherlands.com
Subject: Re: a simple control in an nntp client
Message-Id: <ak9hj41kdrs38ahh3qarftijv8o09s9amg@4ax.com>
On Thu, 4 Dec 2008 14:13:27 -0700, George <george@example.invalid> wrote:
>
>I would like to extend the following script:
>
Have you thought of 'extension' courses?
sln
------------------------------
Date: Fri, 05 Dec 2008 02:13:41 GMT
From: sln@netherlands.com
Subject: Re: how detect english subject and predicate in a sentence
Message-Id: <9h3hj41b3pdo0j2vitll3hfqdrhpm77sr0@4ax.com>
On Wed, 3 Dec 2008 21:49:14 -0800 (PST), Jack <jack_posemsky@yahoo.com> wrote:
>Hi there, just checking to see if anyone knows how to perform this
>basic grammar function ? I searched CPAN and found nothing that was
>able to in Perl..
>
>Thank you,
>
>Jack
Jack, whats the subject of this post?
sln
------------------------------
Date: Thu, 04 Dec 2008 18:09:08 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: how detect english subject and predicate in a sentence
Message-Id: <8663lz8jaz.fsf@blue.stonehenge.com>
>>>>> "Charlton" == Charlton Wilbur <cwilbur@chromatico.net> writes:
>>>>> "J" == Jack <jack_posemsky@yahoo.com> writes:
J> Hi there, just checking to see if anyone knows how to perform
J> this basic grammar function ? I searched CPAN and found nothing
J> that was able to in Perl..
Charlton> That's because it's not a trivial problem.
Charlton> Consider: "Time flies like an arrow. Fruit flies like a banana."
Charlton> In the second sentence, what is the subject?
Keep in mind, the second sentence has *three* interesting interpretations:
(1) There are a kind of flies, called "fruit flies" that are attracted
to bananas.
(2) Fruit has aerodynamics that are similar to bananas.
(3) You are instructed to attack some flies by throwing fruit at them.
Do this as a banana might do it.
Granted, they have various levels of relative believability, but this
is not something you can simply regex.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
------------------------------
Date: Thu, 04 Dec 2008 18:29:10 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: how detect english subject and predicate in a sentence
Message-Id: <Fm0_k.8758$yB4.5337@newsfe07.iad>
Randal L. Schwartz wrote:
> (2) Fruit has aerodynamics that are similar to bananas.
I actually read it like that, genuinely. "Fruit" flies like a banana.
I'd have thought differently if it was phrased: "Fruit flies" like
bananas.
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Thu, 4 Dec 2008 18:54:26 -0800 (PST)
From: Ted Byers <r.ted.byers@gmail.com>
Subject: Re: how detect english subject and predicate in a sentence
Message-Id: <72acdd5d-4160-4074-a7b9-63e8be931300@o40g2000prn.googlegroups.com>
On Dec 4, 5:10=A0pm, Charlton Wilbur <cwil...@chromatico.net> wrote:
> >>>>> "SB" =3D=3D Scott Bryce <sbr...@scottbryce.com> writes:
>
> =A0 =A0 SB> Jack wrote:
>
> =A0 =A0 >> I want to know the topical NOUN of the sentence. =A0Not nouns =
that
> =A0 =A0 >> happen to supplement elsewhere in the sentence. =A0In "fruit f=
lies
> =A0 =A0 >> like a banana" - the key or topical noun is 'fruit' NOT banana
> =A0 =A0 >> yet both are nouns...just 1 example.
>
> =A0 =A0 SB> This is an example which points out how difficult the task
> =A0 =A0 SB> is. "Fruit" is NOT the topic of the sentence. "flies"
> =A0 =A0 SB> is. "Fruit" tells us what type of flies like bananas.
>
> Actually, the sentence can be read *correctly* in two incompatible ways.
> You can read "Fruit flies" as the subject, and "like a banana" as the
> predicate, or "Fruit" as the subject, and "flies like a banana" as the
> predicate. =A0Both readings are correct.
>
> Structurally, it's identical to the former sentence in the statement:
> "Time flies like an arrow." =A0But because there is no such thing as a
> "time fly," there's only one reading that makes sense.
>
Can we be sure of this? There is an important group of flies called
the ephemerata (includes crane flies). Who knows? Maybe some
entomologist with a perverse sense of humour labelled a new species of
ephemerata as the short time fly (the ephemerata live for about a day
as an adult, mate and die - they don't eat as adults - they're
ephemeral ...), and some other, longer lived species as a long time
fly. ;-) In a sense, one already did, albiet in another
language ... Or perhaps call a new species of fly 'time', so one can
refer to 'time' flying while you're having fun trying to catch it ...
heh, heh .... that's the sort of thing I'd do if I were lucky enough
to discover a new species of fly. one must try to inject a little fun
into work ...
> In other words, you can't determine what the subject of the sentence is
> without knowledge of the semantic content. =A0
>
> =A0 =A0 SB> If YOU cannot determine the subject of the sentence, how do y=
ou
> =A0 =A0 SB> expect to write code that determines the subject of the
> =A0 =A0 SB> sentence?
>
> This is, at its heart, the fundamental question.
>
I do like the example provided because it is a simple, clear
illustration of the fact that natural language, unlike programming
languages, is multivocal. And one can have a bit of fun with it
too.
It is easy enough to find open source code that is useful for checking
spelling, but I wonder what it would take to put together a perl
script (perhaps using some of the lingua packages I installed today)
that classifies a statement in standard english as correct or
incorrect, and then proceeds to identify ambiguities related to a
given sentence having two or more legitimate readings (as determined
by syntax). I expect, though, that human intervention would be
required in all cases to determine which of several legitimate
readings is correct because one can not derive semantics from syntax
and as pointed out already one needs the semantics to determine which
reading of the sentence is correct (again the example provided shows
why syntax is insufficient to determine semantics).
Has anyone seen a perl script that can test a statement for
grammatical correctness, and multivocality?
Cheers,
Ted
------------------------------
Date: Fri, 05 Dec 2008 03:07:55 GMT
From: sln@netherlands.com
Subject: Re: how detect english subject and predicate in a sentence
Message-Id: <8n6hj41bv7ddrpprrrrauni3qlu1h0jp7j@4ax.com>
On Thu, 4 Dec 2008 18:54:26 -0800 (PST), Ted Byers <r.ted.byers@gmail.com> wrote:
>On Dec 4, 5:10 pm, Charlton Wilbur <cwil...@chromatico.net> wrote:
>> >>>>> "SB" == Scott Bryce <sbr...@scottbryce.com> writes:
>>
>> SB> Jack wrote:
>>
>> >> I want to know the topical NOUN of the sentence. Not nouns that
>> >> happen to supplement elsewhere in the sentence. In "fruit flies
>> >> like a banana" - the key or topical noun is 'fruit' NOT banana
>> >> yet both are nouns...just 1 example.
>>
>> SB> This is an example which points out how difficult the task
>> SB> is. "Fruit" is NOT the topic of the sentence. "flies"
>> SB> is. "Fruit" tells us what type of flies like bananas.
>>
>> Actually, the sentence can be read *correctly* in two incompatible ways.
>> You can read "Fruit flies" as the subject, and "like a banana" as the
>> predicate, or "Fruit" as the subject, and "flies like a banana" as the
>> predicate. Both readings are correct.
>>
>> Structurally, it's identical to the former sentence in the statement:
>> "Time flies like an arrow." But because there is no such thing as a
>> "time fly," there's only one reading that makes sense.
>>
>Can we be sure of this? There is an important group of flies called
>the ephemerata (includes crane flies). Who knows? Maybe some
>entomologist with a perverse sense of humour labelled a new species of
>ephemerata as the short time fly (the ephemerata live for about a day
>as an adult, mate and die - they don't eat as adults - they're
>ephemeral ...), and some other, longer lived species as a long time
>fly. ;-) In a sense, one already did, albiet in another
>language ... Or perhaps call a new species of fly 'time', so one can
>refer to 'time' flying while you're having fun trying to catch it ...
>
>heh, heh .... that's the sort of thing I'd do if I were lucky enough
>to discover a new species of fly. one must try to inject a little fun
>into work ...
>
>> In other words, you can't determine what the subject of the sentence is
>> without knowledge of the semantic content.
>>
>> SB> If YOU cannot determine the subject of the sentence, how do you
>> SB> expect to write code that determines the subject of the
>> SB> sentence?
>>
>> This is, at its heart, the fundamental question.
>>
>
>I do like the example provided because it is a simple, clear
>illustration of the fact that natural language, unlike programming
>languages, is multivocal. And one can have a bit of fun with it
>too.
>
>It is easy enough to find open source code that is useful for checking
>spelling, but I wonder what it would take to put together a perl
>script (perhaps using some of the lingua packages I installed today)
>that classifies a statement in standard english as correct or
>incorrect, and then proceeds to identify ambiguities related to a
>given sentence having two or more legitimate readings (as determined
>by syntax). I expect, though, that human intervention would be
>required in all cases to determine which of several legitimate
>readings is correct because one can not derive semantics from syntax
>and as pointed out already one needs the semantics to determine which
>reading of the sentence is correct (again the example provided shows
>why syntax is insufficient to determine semantics).
>
>Has anyone seen a perl script that can test a statement for
>grammatical correctness, and multivocality?
>
>Cheers,
>
>Ted
You go Ted, you are da'man!
sln
------------------------------
Date: Fri, 05 Dec 2008 03:18:18 GMT
From: sln@netherlands.com
Subject: Re: how detect english subject and predicate in a sentence
Message-Id: <i37hj4p3kj7l7pltfr4t5ulds8v7bshqtm@4ax.com>
On Fri, 05 Dec 2008 03:07:55 GMT, sln@netherlands.com wrote:
>On Thu, 4 Dec 2008 18:54:26 -0800 (PST), Ted Byers <r.ted.byers@gmail.com> wrote:
>
>>On Dec 4, 5:10 pm, Charlton Wilbur <cwil...@chromatico.net> wrote:
>>> >>>>> "SB" == Scott Bryce <sbr...@scottbryce.com> writes:
>>>
>>> SB> Jack wrote:
>>>
>>> >> I want to know the topical NOUN of the sentence. Not nouns that
>>> >> happen to supplement elsewhere in the sentence. In "fruit flies
>>> >> like a banana" - the key or topical noun is 'fruit' NOT banana
>>> >> yet both are nouns...just 1 example.
>>>
>>> SB> This is an example which points out how difficult the task
>>> SB> is. "Fruit" is NOT the topic of the sentence. "flies"
>>> SB> is. "Fruit" tells us what type of flies like bananas.
>>>
>>> Actually, the sentence can be read *correctly* in two incompatible ways.
>>> You can read "Fruit flies" as the subject, and "like a banana" as the
>>> predicate, or "Fruit" as the subject, and "flies like a banana" as the
>>> predicate. Both readings are correct.
>>>
>>> Structurally, it's identical to the former sentence in the statement:
>>> "Time flies like an arrow." But because there is no such thing as a
>>> "time fly," there's only one reading that makes sense.
>>>
>>Can we be sure of this? There is an important group of flies called
>>the ephemerata (includes crane flies). Who knows? Maybe some
>>entomologist with a perverse sense of humour labelled a new species of
>>ephemerata as the short time fly (the ephemerata live for about a day
>>as an adult, mate and die - they don't eat as adults - they're
>>ephemeral ...), and some other, longer lived species as a long time
>>fly. ;-) In a sense, one already did, albiet in another
>>language ... Or perhaps call a new species of fly 'time', so one can
>>refer to 'time' flying while you're having fun trying to catch it ...
>>
>>heh, heh .... that's the sort of thing I'd do if I were lucky enough
>>to discover a new species of fly. one must try to inject a little fun
>>into work ...
>>
>>> In other words, you can't determine what the subject of the sentence is
>>> without knowledge of the semantic content.
>>>
>>> SB> If YOU cannot determine the subject of the sentence, how do you
>>> SB> expect to write code that determines the subject of the
>>> SB> sentence?
>>>
>>> This is, at its heart, the fundamental question.
>>>
>>
>>I do like the example provided because it is a simple, clear
>>illustration of the fact that natural language, unlike programming
>>languages, is multivocal. And one can have a bit of fun with it
>>too.
>>
>>It is easy enough to find open source code that is useful for checking
>>spelling, but I wonder what it would take to put together a perl
>>script (perhaps using some of the lingua packages I installed today)
>>that classifies a statement in standard english as correct or
>>incorrect, and then proceeds to identify ambiguities related to a
>>given sentence having two or more legitimate readings (as determined
>>by syntax). I expect, though, that human intervention would be
>>required in all cases to determine which of several legitimate
>>readings is correct because one can not derive semantics from syntax
>>and as pointed out already one needs the semantics to determine which
>>reading of the sentence is correct (again the example provided shows
>>why syntax is insufficient to determine semantics).
>>
>>Has anyone seen a perl script that can test a statement for
>>grammatical correctness, and multivocality?
>>
>>Cheers,
>>
>>Ted
>You go Ted, you are da'man!
>
>sln
You know, usually these crackpot posts are aimed at the negative
of English grammar correctness.
After all, it isin't 'correct' English that is the problem, but
the interpretation of spam content emails.
There is NO INVERSE of correctness if it can't be systematically
defined in interpretation.
Thnaks, nice try Symantec. Hope your stocks rise above $.39 a share.
sln
------------------------------
Date: Thu, 04 Dec 2008 18:22:15 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: perl segfault - how to troubleshoot
Message-Id: <Ff0_k.8752$yB4.8001@newsfe07.iad>
sln@netherlands.com wrote:
> Whatever problems you 'think' can be solved on a computer
> language usenet group, you are sadly mistaken.
Who are you talking to? The OP asked the question and had the problem,
so reply to them (not me). Also, why did you reply to your own posts
four times? Why would you reply to your own posts and argue with
yourself? Why did you reply to _my_ post in the first place? I didn't
ask the question, and your poor method of quoting and replying to me,
makes it look like I asked the question, when I didn't.
You also said you killfiled me a few days ago when you embarrassed
yourself in another thread the other day. What happened there, can't
stay away? By the way, *I* did filter you out, but saw your replies to
me here on usenet archives when I was asked to refer to something
earlier for someone (so I've lifted the filter to reply to you here
about this). Anyway, your posting methods are just completely out
there. Please move on.
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Fri, 05 Dec 2008 02:55:41 GMT
From: sln@netherlands.com
Subject: Re: perl segfault - how to troubleshoot
Message-Id: <2f5hj4hq8tk6bcbhhc78lps1i84fcu1kml@4ax.com>
On Thu, 04 Dec 2008 18:22:15 -0800, Tim Greer <tim@burlyhost.com> wrote:
>sln@netherlands.com wrote:
>
>> Whatever problems you 'think' can be solved on a computer
>> language usenet group, you are sadly mistaken.
>
>Who are you talking to? The OP asked the question and had the problem,
>so reply to them (not me). Also, why did you reply to your own posts
>four times? Why would you reply to your own posts and argue with
>yourself? Why did you reply to _my_ post in the first place? I didn't
>ask the question, and your poor method of quoting and replying to me,
>makes it look like I asked the question, when I didn't.
>
>You also said you killfiled me a few days ago when you embarrassed
>yourself in another thread the other day. What happened there, can't
>stay away? By the way, *I* did filter you out, but saw your replies to
>me here on usenet archives when I was asked to refer to something
>earlier for someone (so I've lifted the filter to reply to you here
>about this). Anyway, your posting methods are just completely out
>there. Please move on.
Nobody killfiles me, you just got snookered by some other posters
rhetoric. They don't killfile me, they never did, they never will.
I'm relavent in a slanted way, but more so, a prodigeous implementor.
And I laugh it all off anyway.
I didn't post to you directly, but indirectly based on your snippings.
I guess thats a direct post to not only what your quoting was, but your
packaged answer. Which is felloneous in this context. It is mearly a
jump point, nothing personal.
I never argue with myself. I always asume I know whats best.
Its a family thing.
sln
------------------------------
Date: Thu, 04 Dec 2008 20:57:54 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: perl segfault - how to troubleshoot
Message-Id: <nx2_k.3865$tr1.1536@newsfe05.iad>
sln@netherlands.com wrote:
> Nobody killfiles me,
I do (and will again after this reply -- you can have "the last word").
I had removed you from my filter to see your post here so I could
remind you that you said *you* had killfiled me, which you clearly
didn't.
On Friday 28 November 2008 5:45:38 pm, you stated you had "plonked" me.
http://en.wikipedia.org/wiki/Plonk_(usenet)
If nothing else, at least be a man of your word.
> you just got snookered by some other posters
> rhetoric.
Not really. What other people say they feel (negatively) about you, had
absolutely no bearing on my act of filtering you.
> They don't killfile me, they never did, they never will.
I really don't know and don't care. However, since that's a matter of
interest, it seems you will never live up to your own word and killfile
me. That's fine, but why say you have or will?
> I'm relavent in a slanted way, but more so, a prodigeous implementor.
> And I laugh it all off anyway.
You're irrelevant.
> I didn't post to you directly,
I never said you did, I stated your method of quoting and replying to my
post is confusing and appears as if you were replying to me. You
appeared confused. You then replied to yourself three more times, as
you very often do on this group. It's strange behavior, not that I
care, I just asked why you would out of curiosity.
> but indirectly based on your snippings.
Your reply had nothing to do with my reply to the OP. You should reply
to the OP's own posts if you want to reply to them.
> I guess thats a direct post to not only what your quoting was, but
> your packaged answer.
You're not making sense. My response was to their new post and
question, not to guess about what their problem was. The man asked how
to check the drive for errors (on a Linux system), and you went on a
rant about some basic things you can do in Windows. It wasn't relevant
or helpful to them.
> Which is felloneous in this context. It is
> mearly a jump point, nothing personal.
I'm not offended, I didn't take it personally. If you didn't see the
OP's own posts, your news reader might be broken, or you need a new ISP
or news server. Additionally, you said you had kill filed me, yet you
reply to my posts, and not the OP's own. That seems odd.
> I never argue with myself.
Odd that you have replied to yourself complaining about your own
previous posts. I guess you confused youself with someone else on
occasion?
> I always asume I know whats best.
Unfortunate.
> Its a family thing.
A Manson Family thing?
*plonk*
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Fri, 05 Dec 2008 02:43:53 GMT
From: sln@netherlands.com
Subject: Re: sysread and syswrite analogy
Message-Id: <i75hj41hn0qd4qv2b53uh7eu5o7spqp2cv@4ax.com>
On 04 Dec 2008 19:58:16 GMT, xhoster@gmail.com wrote:
>For file handles that don't have O_NONBLOCK turned on, I see this
>behavior:
>
>sysread will return partial reads (fewer bytes than were requested), rather
>than blocking, provided that the partial read is at least one byte.
>
>syswrite will not perform partial writes, but rather it will block waiting
>for the entire write to be accepted.
>
>Based on sysread's behavior, I would have expected syswrite to return
>immediately with a partial write, provided that at least one character was
>written. Why the lack of analogy between the two?
>
>Xho
Am I missing something here? Level I and level II with regard to i/o?
I thought syswrite/sysread were Level I i/o.
sln
------------------------------
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 V11 Issue 2033
***************************************