[29341] in Perl-Users-Digest
Perl-Users Digest, Issue: 585 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Jun 26 21:10:16 2007
Date: Tue, 26 Jun 2007 18:09:10 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 26 Jun 2007 Volume: 11 Number: 585
Today's topics:
Re: ...gulp...ummm... is Perl6 deceased ? <stuseven@hotmail.com>
Date<->UNIX timestamp mapping (was Portable general ti <martin@see.sig.for.address>
Re: FAQ 1.6 What is perl6? <savagebeaste@yahoo.com>
Re: FAQ 1.6 What is perl6? <savagebeaste@yahoo.com>
Re: FAQ 1.6 What is perl6? <savagebeaste@yahoo.com>
Re: FAQ 1.6 What is perl6? <tadmc@seesig.invalid>
Re: FAQ 1.6 What is perl6? <tadmc@seesig.invalid>
Re: FAQ 1.6 What is perl6? <savagebeaste@yahoo.com>
Re: FAQ 1.6 What is perl6? <savagebeaste@yahoo.com>
Re: Perl Best Practices - Code Formatting. <yankeeinexile@gmail.com>
Re: Portable general timestamp format, not 2038-limited <martin@see.sig.for.address>
Re: Portable general timestamp format, not 2038-limited <martin@see.sig.for.address>
Re: Portable general timestamp format, not 2038-limited <http://phr.cx@NOSPAM.invalid>
Re: Portable general timestamp format, not 2038-limited sla29970@gmail.com
Re: Problem with autoincrement and strings with spaces <uri@stemsystems.com>
Re: Problem with PERL function jgraber@ti.com
Re: Problem with Storable qw(store_fd fd_retrieve) (J.D. Baldwin)
Re: sort function, in non-standard cases <uri@stemsystems.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 26 Jun 2007 17:09:30 -0700
From: "stuseven@hotmail.com" <stuseven@hotmail.com>
Subject: Re: ...gulp...ummm... is Perl6 deceased ?
Message-Id: <1182902970.866735.323250@n60g2000hse.googlegroups.com>
+ OK then peeps... thanks for answering... as I say,
Id been checking periodically for the perl6 release for
many quarters... glad to see the project is progressing,
however slowly.
------------------------------
Date: Tue, 26 Jun 2007 23:59:32 +0100
From: Martin Gregorie <martin@see.sig.for.address>
Subject: Date<->UNIX timestamp mapping (was Portable general timestamp format, not 2038-limited)
Message-Id: <rbi8l4-tjt.ln1@zoogz.gregorie.org>
Paul Rubin wrote:
> Martin Gregorie <martin@see.sig.for.address> writes:
>>> Same one already given: http://cr.yp.to/proto/utctai.html
>> <picky_mode>
>> Nope - you referenced leap seconds, not TAI and not that URL
>
> Oh whoops, I thought I put that url further up in the thread.
> I remember grumbling to myself about having to look for it twice.
> Maybe I'm just confused. Anyway it's pretty interesting stuff,
> as is the Wikipedia article someone else linked to.
>
Thinking of interesting date & time related stuff, there's another
document I remember seeing a while back - probably around early '98. It
was an ASCII configuration file that contained to rules for mapping
human readable dates & times to UNIX timestamps after taking account of
changes of calendar (e.g. the switch between Julian and Gregorian
calendars), the introduction of daylight saving time, etc. I remember
that it was mostly comment interspersed with mapping rules and that the
comments were vast and fascinating, often including copies of e-mail
threads.
The file was part of a Linux distro, probably Debian. Some time later,
after I set up my first Linux system, I went looking for it without
success, probably because by that time (RedHat 6.2) the date mapping
rules had become encoded as some sort of binary rule set.
I'd very much like to know where I could find a copy of that file.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
------------------------------
Date: Tue, 26 Jun 2007 14:19:12 -0700
From: "Clenna Lumina" <savagebeaste@yahoo.com>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <5ede6mF36jgq5U1@mid.individual.net>
Michele Dondi wrote:
> On Tue, 26 Jun 2007 09:36:01 -0700, "Clenna Lumina"
> <savagebeaste@yahoo.com> wrote:
>
>>> OTOH I
>>> know I've received help and wisdom from him, and he's been courteous
>>> and respectful in my regards,
>>
>> Again, he provoked the argument of my typing skills, I'd hardly call
>> that "courteous and respectful", rather I'd describe it as
>> attempting to pick a fight.
>
> I'd describe it as sarcasm. And it makes me laugh. It's nice to laugh.
> C'mon, try yourself!
I don't mind laughing. It's a perfectly healthy exercise everyone should
part take in regularly.
>>> nothing of which I can say about you, period.
>>
>> Excuse me while I laugh hysterically a moment. How in the name of
>> Socrates' oatmeal pudding did we go from typographical-error to me
>> being anti "courteous and respectful"? Can YOU really say YOU & Tad
>> have been "courteous and respectful" in your crusade against me?
>
> If I have been unrespectful, then I apologize, but if I have been it
> was only in pointing out how I perceived you to be unrespectful to me,
> as one of the potential recipients of your post. To me one that
> doesn't even care to check that what he writes is clearly
> understandable is... well... uhm... unrespectful.
It was never my intention to be disrespectful towards you. If I was
disrespectful to anyone, it was in to reaction to Tad's initial post and
I apologize for that.
I just don't see how a typo some how constitutes being "unrespectful."
If it does, then there are few people who aren't guilty of that crime,
including your self, yet I can't help but feel as if I'm being singled
out and picked on for it. For the record, I DO try my best to make sure
I don't get sloppy in my writing and that it's as neat and readable as
possible. Hell, I've even reformatted replies that were a mess just to
keep things readable and sane for others before.
So again, if I have disrespected you, I am sorry.
--
CL
------------------------------
Date: Tue, 26 Jun 2007 14:22:25 -0700
From: "Clenna Lumina" <savagebeaste@yahoo.com>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <5edecnF38vmkbU1@mid.individual.net>
Michele Dondi wrote:
> On Tue, 26 Jun 2007 09:39:46 -0700, "Clenna Lumina"
> <savagebeaste@yahoo.com> wrote:
>
> > > > seen soem regualars reepatedly tell people not to reinvent whats
> > > > already
> > > ^^ ^ ^^ ^^
> > > ^^ ^ ^^ ^^
> > > 1 2 3 4
> > >
> > > In one line...
> >
> > So what? They are just typos. You still haven't answered how this
>
> Four typos out of ten words denote carelessness. Believe me, in Italy
> there's been fascism: their motto was "I don't give a fuck". That
> pretty much describes their POV. OTOH the opposite is "I CARE". I
> CARE!
Ok, maybe it was carelessness, and I apologize for that. I just feel
like I'm being singled out for it despite the fact I'm hardly the only
person to have horribly massacred a sentence. All I can do is try harder
to prevent such verbal mutilations :)
--
CL
------------------------------
Date: Tue, 26 Jun 2007 14:25:52 -0700
From: "Clenna Lumina" <savagebeaste@yahoo.com>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <5edej6F37m33eU1@mid.individual.net>
Michele Dondi wrote:
> On Tue, 26 Jun 2007 09:57:27 -0700, "Clenna Lumina"
> <savagebeaste@yahoo.com> wrote:
>
>>> No, by any means.
>>
>> I could sware there was, while else would:
>>
>> $ perl -le 'use strict; &somesub;'
>> Undefined subroutine &main::somesub called at -e line 1.
>>
>> vs
>>
>> $ perl -le 'use strict; package TEST; &somesub;'
>> Undefined subroutine &TEST::somesub called at -e line 1.
>>
>> Maybe I'm confusing two different things here but it appear as if
>> there is a implicit main:: package, or am I missing something?
>
> Yes, but this has nothing to do with a magic package in Perl 6 which
> will hold the variables that are lexical to a scope. This way, the two
> different variable systems will become one again. PadWalker
> notwithstanding, this is a feature I'd really like to see leak back in
> Perl 5.
Sounds like a great feature, although I'm not sure how well that would
bode with some existing programs that depended on the old (ahem,
current) behavior.
Nonetheless I think this would be a great feature to have in Perl 5.
>>> Which style?
>>
>> The (more proper?) way of writing 'my' and 'our' and such as you
>> were, as C<my>, C<our>, etc.
>
> Oh, (pseudo-)POD. With function names I disambiguate in text with a
> pair of parentheses, but with these keyword I prefer the somewhat
> heavier markup to avoid confusion.
It indeed makes things much more readable :)
--
CL
------------------------------
Date: Tue, 26 Jun 2007 18:29:37 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <slrnf838b1.l7s.tadmc@tadmc30.sbcglobal.net>
Clenna Lumina <savagebeaste@yahoo.com> wrote:
> Michele Dondi wrote:
>> On Tue, 26 Jun 2007 08:21:31 -0700, "Clenna Lumina"
>> <savagebeaste@yahoo.com> wrote:
>>
>>> Well, in Perl 5 isn't there an implicit 'main::' package? I realize
>>> it may not be the same as this "magic package" you speak of, but
>>> still then I think it would be better said that declaring C<my>'s
^^
^^
>>> (to borrow your
>>
>> No, by any means.
>
> I could sware there was, while else would:
>
> $ perl -le 'use strict; &somesub;'
> Undefined subroutine &main::somesub called at -e line 1.
No my()d variable there.
> vs
>
> $ perl -le 'use strict; package TEST; &somesub;'
> Undefined subroutine &TEST::somesub called at -e line 1.
None there either.
> Maybe I'm confusing two different things here but it appear as if there
> is a implicit main:: package, or am I missing something?
You are missing that lexical variables (my) are not in ANY package.
Only package variables (our) are in a package.
> Package scope then, perhaps?
It cannot possibly be package scope, because lexical variables
are not in any package. (they live elsewhere, known as the
scratch pad).
See:
"Coping with Scoping":
http://perl.plover.com/FAQs/Namespaces.html
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Tue, 26 Jun 2007 18:23:09 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <slrnf837ut.l7s.tadmc@tadmc30.sbcglobal.net>
Clenna Lumina <savagebeaste@yahoo.com> wrote:
> Tad McClellan wrote:
>> Clenna Lumina <savagebeaste@yahoo.com> wrote:
>>> Tad McClellan wrote:
>>>> Clenna Lumina <savagebeaste@yahoo.com> wrote:
>>>>
>>>>> I have
>>>>> seen soem regualars reepatedly tell people not to reinvent whats
>>>>> already good and working and accepted.
>>>>
>>>>
>>>> Like acceptable spelling.
>>>>
>>>> If some famous Perl guy would of jsut implemented a spell-correcting
>> ^^^^
>>>> 'bot, then things would of been a lot better around here...
>> ^^^^^^^^
>>>
>>> How is this relevant?
>>
>>
>> From when your name was Al MacHonahey:
>>
>> Message-ID: <56184210.0209031038.3b40a9ef@posting.google.com>
>
> Ok, having gone back and looked again, to see why you so desperately
> have it out for me,
You build your reputation, and then you live with it.
> see I apparently missed this line when I examined
> that post the first time. I believe I see why you were so insistent.
>
> From: savagebea...@yahoo.com (Al MacHonahey)
>
> This is a forgery. Assuming it is identical to my email address (google
> hides part of it) then this Al MacHonahey was posting with an address he
> did not own.
Yes, it has been well established that the Jsut Troll posts forgeries.
> Furthermore, I am only a recent participant in this news group,
Frankly, I simply do not believe you.
The modus operandi of Clenna Lumina tracks with that of Jsut
on too many points to be coincidence.
You can claim that you are not you, but that does not make you not
you, and it shows in how you conduct yourself.
> I hope this finally douses the flames.
Stop posting and the flames will stop.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Tue, 26 Jun 2007 17:20:06 -0700
From: "Clenna Lumina" <savagebeaste@yahoo.com>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <5edopsF382229U1@mid.individual.net>
Tad McClellan wrote:
> Clenna Lumina <savagebeaste@yahoo.com> wrote:
>> Tad McClellan wrote:
>>> Clenna Lumina <savagebeaste@yahoo.com> wrote:
>>>> Tad McClellan wrote:
>>>>> Clenna Lumina <savagebeaste@yahoo.com> wrote:
>>>>>
>>>>>> I have
>>>>>> seen soem regualars reepatedly tell people not to reinvent whats
>>>>>> already good and working and accepted.
>>>>>
>>>>>
>>>>> Like acceptable spelling.
>>>>>
>>>>> If some famous Perl guy would of jsut implemented a
>>>>> spell-correcting
>>> ^^^^
>>>>> 'bot, then things would of been a lot better around here...
>>> ^^^^^^^^
>>>>
>>>> How is this relevant?
>>>
>>>
>>> From when your name was Al MacHonahey:
>>>
>>> Message-ID: <56184210.0209031038.3b40a9ef@posting.google.com>
>>
>> Ok, having gone back and looked again, to see why you so desperately
>> have it out for me,
>
>
> You build your reputation, and then you live with it.
I don't really have much of an online reputation. There's only been one
group I've been really active in and this one isn't it. Other than that
I've been just reading/lurking over the years until I started to try DNS
management (which I have enjoyed, and even used some Perl to aid in
generating confs and zones.)
>> see I apparently missed this line when I examined
>> that post the first time. I believe I see why you were so insistent.
>>
>> From: savagebea...@yahoo.com (Al MacHonahey)
>>
>> This is a forgery. Assuming it is identical to my email address
>> (google hides part of it) then this Al MacHonahey was posting with
>> an address he did not own.
>
>
> Yes, it has been well established that the Jsut Troll posts forgeries.
What does this have to do with me?
>> Furthermore, I am only a recent participant in this news group,
>
>
> Frankly, I simply do not believe you.
Frankly, I do not really care any more. You've tried my patience far too
long with your idiocy and failed to backup your frivolous claims. In
fact all you've done is create noise and wasted everyone's time with
this off topic-ry. And you're supposed to be setting an example for
others.
> The modus operandi of Clenna Lumina tracks with that of Jsut
> on too many points to be coincidence.
So you are trying to base this all one a particular typo? This tracks as
solid evidence in your mind? Well, I'm glad you aren't in law
enforcement.
> You can claim that you are not you, but that does not make you not
> you, and it shows in how you conduct yourself.
No it shows that you target people without any real basis or solid
evidence. This is a coward's ploy.
>> I hope this finally douses the flames.
>
>
> Stop posting and the flames will stop.
Funny, when you are the one who baited this side-thread in the first
place. Yet I'm the villain here.
*sigh*
--
CL
------------------------------
Date: Tue, 26 Jun 2007 17:23:14 -0700
From: "Clenna Lumina" <savagebeaste@yahoo.com>
Subject: Re: FAQ 1.6 What is perl6?
Message-Id: <5edovpF38gu4bU1@mid.individual.net>
Tad McClellan wrote:
> Clenna Lumina <savagebeaste@yahoo.com> wrote:
> > Michele Dondi wrote:
> > > On Tue, 26 Jun 2007 08:21:31 -0700, "Clenna Lumina"
> > > <savagebeaste@yahoo.com> wrote:
> >
> > Maybe I'm confusing two different things here but it appear as if
> > there is a implicit main:: package, or am I missing something?
>
>
> You are missing that lexical variables (my) are not in ANY package.
>
> Only package variables (our) are in a package.
Good point.
> > Package scope then, perhaps?
>
> It cannot possibly be package scope, because lexical variables
> are not in any package. (they live elsewhere, known as the
> scratch pad).
Yes, I forgot that bit. At the time I just couldn't think of what else
it could be called.
> See:
>
> "Coping with Scoping":
>
> http://perl.plover.com/FAQs/Namespaces.html
Ah, thank you.
--
CL
------------------------------
Date: 26 Jun 2007 15:32:44 -0500
From: Lawrence Statton <yankeeinexile@gmail.com>
Subject: Re: Perl Best Practices - Code Formatting.
Message-Id: <87fy4esbgz.fsf@gmail.com>
Keith Keller <kkeller-usenet@wombat.san-francisco.ca.us> writes:
> On 2007-06-26, Charlton Wilbur <cwilbur@chromatico.net> wrote:
> >
> > "Transubstantiation? Consubstantiation? Heck, we don't know, we just
> > do it because He said so, and we think that getting together to
> > worship is a good thing."
>
> I'm glad the thread has gotten back to Perl best practices. ;-)
>
Now, everyone turn in your hymnals to #312 "There Is More Than One Way
To Do It"...
--
Lawrence Statton - lawrenabae@abaluon.abaom s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
place them into the correct order.
------------------------------
Date: Tue, 26 Jun 2007 21:21:01 +0100
From: Martin Gregorie <martin@see.sig.for.address>
Subject: Re: Portable general timestamp format, not 2038-limited
Message-Id: <m298l4-kis.ln1@zoogz.gregorie.org>
sla29970@gmail.com wrote:
> On Jun 25, 6:46 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
>> TAI really does seem like the most absolute--if you are a user in
>> orbit or on Mars, then UTC timestamps will seem pretty meaningless and
>> artificial.
>
> TAI makes sense for clocks on the surface of the earth (at least until
> ion trap clocks and picosecond intercomparison become routine, at
> which point not even TAI tells what time it is for you), but clocks
> off the surface of the earth tick at rates which already differ
> nonlinearly from TAI by measurable amounts.
>
True. The first direct demonstration of relativistic time dilation was
made in 1971 with three HP cesium beam atomic clocks. One stayed in the
lab, while the other were shipped round the world in opposite directions
on commercial jet flights. When the clocks were compared afterwards
the errors in the traveling clocks agreed with theory within
experimental error. See:
http://hyperphysics.phy-astr.gsu.edu/hbase/relativ/airtim.html
for more detail. This shows the clocks don't have to be moving at
interplanetary speeds to be significantly affected.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
------------------------------
Date: Tue, 26 Jun 2007 21:11:58 +0100
From: Martin Gregorie <martin@see.sig.for.address>
Subject: Re: Portable general timestamp format, not 2038-limited
Message-Id: <jh88l4-pgs.ln1@zoogz.gregorie.org>
Paul Rubin wrote:
> Same one already given: http://cr.yp.to/proto/utctai.html
<picky_mode>
Nope - you referenced leap seconds, not TAI and not that URL
</picky_mode>
Thanks for the reference, though.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
------------------------------
Date: 26 Jun 2007 14:17:23 -0700
From: Paul Rubin <http://phr.cx@NOSPAM.invalid>
Subject: Re: Portable general timestamp format, not 2038-limited
Message-Id: <7x645al8kc.fsf@ruckus.brouhaha.com>
Martin Gregorie <martin@see.sig.for.address> writes:
> > Same one already given: http://cr.yp.to/proto/utctai.html
> <picky_mode>
> Nope - you referenced leap seconds, not TAI and not that URL
Oh whoops, I thought I put that url further up in the thread.
I remember grumbling to myself about having to look for it twice.
Maybe I'm just confused. Anyway it's pretty interesting stuff,
as is the Wikipedia article someone else linked to.
------------------------------
Date: Tue, 26 Jun 2007 21:40:03 -0000
From: sla29970@gmail.com
Subject: Re: Portable general timestamp format, not 2038-limited
Message-Id: <1182894003.920335.317620@a26g2000pre.googlegroups.com>
On Jun 26, 2:17 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> Martin Gregorie <mar...@see.sig.for.address> writes:
> > > Same one already given:http://cr.yp.to/proto/utctai.html
> > <picky_mode>
> > Nope - you referencedleap seconds, not TAI and not that URL
>
> Oh whoops, I thought I put that url further up in the thread.
> I remember grumbling to myself about having to look for it twice.
> Maybe I'm just confused. Anyway it's pretty interesting stuff,
> as is the Wikipedia article someone else linked to.
Keep in mind that TAI is not legal time anywhere. It is also not
practical, for the TAI now is not available until next month.
>From a legal standpoint, either UTC or GMT (or both, if you read
different languages in the EU documents) as kept by your national
metrology lab is is the official time. Despite the way the math looks
and the way the physics seems like it ought to dictate, TAI is derived
from UTC, not the other way around. The national metrology labs are
tasked to provide GMT or UTC as part of their charter, so that is
*procedurally* the primary time scale.
Also note the "discussion" link on wikipedia's TAI page before
believing it too much.
------------------------------
Date: Tue, 26 Jun 2007 21:07:05 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Problem with autoincrement and strings with spaces
Message-Id: <x7hcoue87a.fsf@mail.sysarch.com>
>>>>> "PM" == Peter Makholm <peter@makholm.net> writes:
PM> So the magic is documented not to work on strings containing
PM> spaces. I guess they are just converted to numeric context and
PM> then incremented.
>> A '1' is returned instead of the string. Is there a way round this?
PM> Probaly not (an easy way).
actually it is not too hard. just use the /e modifier on an
s///. something like this to incrmenent a trailing substring (untested):
s/(\w+)$/ my $s = $1 ; ++$s/e ;
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: 26 Jun 2007 16:23:07 -0500
From: jgraber@ti.com
Subject: Re: Problem with PERL function
Message-Id: <yvnmyymjtqc.fsf@famous02.dal.design.ti.com>
usenet@DavidFilmer.com writes:
> On Jun 26, 12:15 pm, michaelzhao <mzh...@gmail.com> wrote:
>
> > Basically, I need the frequencies of the 4 bases, Adenosine (A),
> > Thymine (T), Cytosine (C), and Guanine (G).
>
> > However, here is my problem. Instead of doing it globally. I need to
> > be able to specify an arbitrary start and stop position
>
> I don't know bioperl (and there are LOTS of modules related to
> bioperl; maybe one does exactly what/how you want) but if all you want
> to do is basic frequency analysis on an array (assuming your bases are
> in an array) then there are several statistics packages that will do
> this for you. Consider:
snip example of use Statistics::Frequency;
> If you want to specify an arbitrary range, just slice the array, such
> as:
> my $freq = Statistics::Frequency->new( @dna[4..9] );
> (remember arrays start numbering at zero, so this will get the fifth-
> tenth items)
I don't know bioperl either, but it seems like the DNA strings of ATCG
might be represented as long strings because dna people might like to
use regexp to search for subsets.
In that case, here are some idioms
for counting characters in a scalar using tr///,
and for accessing a subset of a string with substr; (pasted and tested)
# 0123456789.12345678
$dna = 'TCTCTCGGGAAGAGATTGA';
$Tcount = $dna =~ tr/T/T/; # tr returns number of T->T replacements
$start = 3; # inclusive, based at 0
$stop = 9; # inclusive
$len = $stop-$start+1
$Tcountss = substr($dna,$start,$len) =~ tr/T/T/; # access subset of $dna
print "dna = '$dna' has $Tcount T's,\n";
print " but only $Tcountss T's in $start to $stop, inclusive\n",
printf " for a relative frequency of %f\n", $Tcountss/$len;
-- output is
dna = 'TCTCTCGGGAAGAGATTGA' has 5 T's,
but only 1 T's in 3 to 9, inclusive
for a relative frequency of 0.142857
As mentioned before, posting short example datastructures from your code
shows you are paying attention, and enable more appropriate assistance.
--
Joel
------------------------------
Date: Tue, 26 Jun 2007 20:43:11 +0000 (UTC)
From: INVALID_SEE_SIG@example.com.invalid (J.D. Baldwin)
Subject: Re: Problem with Storable qw(store_fd fd_retrieve)
Message-Id: <f5rtov$lrn$1@reader2.panix.com>
In the previous article, Martijn Lievaart <m@rtij.nl.invlalid> wrote:
> (snip)
>
> I'm not sure, but...
>
> > open $fd, '>>', $TRACKING_DATA_FILE;
>
> You open $fd for append...
>
> > my $new_ref = fd_retrieve($fd);
>
> ... and try to read from it.
Arrrgh. I had '+<' in the original and switched it to '>>' on a
desperation try. Now I'm getting a different error -- I'll try to
boil it down to the smallest postable program snippet and post again.
Thanks.
--
_+_ From the catapult of |If anyone disagrees with any statement I make, I
_|70|___:)=}- J.D. Baldwin |am quite prepared not only to retract it, but also
\ / baldwin@panix.com|to deny under oath that I ever made it. -T. Lehrer
***~~~~-----------------------------------------------------------------------
------------------------------
Date: Tue, 26 Jun 2007 21:03:32 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: sort function, in non-standard cases
Message-Id: <x7lke6e8d7.fsf@mail.sysarch.com>
>>>>> "JS" == Joe Smith <joe@inwap.com> writes:
JS> John W. Krahn wrote:
>> That should be Guttman-Rosler.
>> http://www.sysarch.com/Perl/sort_paper.html
JS> Thanks for the link.
and Sort::Maker implements the GRT as well as the ST and other sort
styles. it will make sorts like yours much easier to create.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
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 585
**************************************