On Fri, Jun 06, 2003 at 09:40:20PM +0100, Nicholas Clark wrote:
I can hook into a call from a subroutine in that module, so I've looked at
PadWalker as a way of getting at it, but it seems that it can only see
lexicals defined within the subroutine. I'm not sure if this is an
unintended
On Fri, Feb 01, 2002 at 09:52:51AM +, [EMAIL PROTECTED] wrote:
There is at least one quine that works for almost every programming
language; the empty quine. But that's cheating really.
[robin@puffinry robin]$ touch empty.c
[robin@puffinry robin]$ gcc empty.c
/usr/lib/crt1.o(.text+0x18):
A discussion of this topic would hardly be complete without mentioning
http://qs321.pair.com/~monkads/index.pl?node_id=133971
or
http://qs321.pair.com/~monkads/index.pl?node_id=41310
.robin.
On Thu, Jan 31, 2002 at 05:26:36PM +, Jonathan Peterson wrote:
$self-{rb}-addHook('invoke-on-contents', \Checker::invoke_on_contents);
$self-{rb}-addHook('follow-url-test', \Checker::follow_url_test);
You need to close over $self. Try this:
$self-{rb}-addHook('invoke-on-contents', sub
On Thu, Jan 31, 2002 at 05:46:20PM -, Ivor Williams wrote:
$self-{rb}-addHook('invoke-on-contents',
sub {my $foo = $self; $foo-invoke_on_contents});
The intermediary $foo makes the anonymous sub into a closure.
I don't _think_ you need the intermediary $foo, unless I'm missing
On Mon, Jan 28, 2002 at 06:29:36AM -0800, Randal L. Schwartz wrote:
If they don't care about a chain of authority, you're it!
Randal, I think you're missing the point (and I think you probably
know it...)
Of *course* a credible certification needs a chain of authority,
but Larry doesn't
On Mon, Jan 28, 2002 at 05:42:29PM +, Redvers Davies wrote:
195.43.246.52
Either its broken now or i've failed entirely to see the point :-)
You need to fake the Host: header.
Why not just put the entry in your /etc/hosts, and use the name?
.robin.
And on PageRank specifically, _The PageRank Citation Ranking: Bringing
Order to the Web_. http://citeseer.nj.nec.com/page98pagerank.html
I don't think it's publicly known _exactly_ what combination of
factors Google uses in its ranking algorithm, but if your page has
good textual relevance
On Fri, Jan 25, 2002 at 01:26:14PM +, Simon Wilcox wrote:
Google promotes sites based on being linked to.
From this it follows that everyone who runs a website should link to nms
from their homepage, or as close to it as possible, to get it shoved up
the list a bit.
It's also worth
On Thu, Jan 24, 2002 at 01:31:50PM -, Ivor Williams wrote:
Is there a way of getting a coderef for where you are inside caller?
The coderef for where you are is an interesting concept, which sadly
doesn't map very well to perl's internals. Only subroutines have
coderefs; there isn't a
On Thu, Jan 24, 2002 at 03:38:06PM +, Lucy McWilliam wrote:
I'm tempted to do a lightning talk (good practise for my viva) but I don't
actually do anything astonishing Perl-wise, it's just the biology/methods
that are quite fun.
Oh yeah, do it! I know a lot about Perl but very little
On Thu, Jan 24, 2002 at 11:45:32AM -0500, Tommie M. Jones wrote:
Also the Archiver does not know anything about thread structure. If
anyone is an email expert and has some suggestions about it please let me
know. I did not want to base it on the subject line so if there is
another possible
Do you want to find the coderef of foo from _within_ a pre or post
handler?
If so, I imagine that's more or less equivalent to finding a coderef
for 'bar' from within 'foo', given
sub xxx {
foo();
bar();
baz();
}
It can certainly be done using Want-like techniques, but it'll make
On Sat, Jan 19, 2002 at 07:59:52AM +0100, Paul Johnson wrote:
Maybe you can ask the powers that be whether the ^=~ operator has a
name?
It's obviously a firework.
.robin.
On Tue, Jan 15, 2002 at 04:06:40PM +, David Cantrell wrote:
In C, you want isatty(3). In perl, try stat()ing STDIN.
Or just use:
if (-t) { ...}
Pretty unreliable though - what if you used it in a pipe? I think the
environment is a better way to go. It's actually pretty useful that
you
Did any of you fo the the patterns thing last night? (I intended to,
but I got distracted by set theory)
What happened? How was it?
.robin.
On Sat, Jan 05, 2002 at 01:48:13AM +, robin szemeti wrote:
wild guess
my($id) declares the variable at compile time regardless of the conditional,
saving a likkle space for it .. and satisfying the scoping of 'strict'
the conditional prevents initialisation of the variable at run time
On Wed, Dec 12, 2001 at 05:15:38PM +0100, Newton, Philip wrote:
And the answer was? Don't leave us hanging like this! :)
1 while s/\.(.*\.)/$1/;
or something like that?
s/\.(?=.*\.)//g;
or even
s/(.*)(?=\.)/ $_=$1; tr=.==d; $_ /e;
.robin.
On Mon, Dec 10, 2001 at 10:59:47AM -0800, Randal L. Schwartz wrote:
... My hunch is that this works in the same way that @a-[3]
... works, in that an array name is sometimes automatically a
... reference to that array, even though the language definition would
... argue otherwise. I've heard
--- op.c.orig Thu Dec 6 12:08:38 2001
+++ op.cThu Dec 6 12:14:57 2001
@@ -2055,6 +2055,13 @@
desc, sample, sample);
}
+if (right-op_type == OP_CONST
+ cSVOPx(right)-op_private OPpCONST_BARE
+ cSVOPx(right)-op_private OPpCONST_STRICT)
+{
+
On Mon, Dec 03, 2001 at 10:29:52PM +, Nic Gibson wrote:
And on a vaguely related perl related topic... has anyone upgraded Perl
on OS X? I want to do it but I've blown up os X too many times recently
and want to know someone else has made it work first.
Yes, I have.
My advice is not
On Mon, Dec 03, 2001 at 03:51:01PM +, [EMAIL PROTECTED] wrote:
Nope, busted somewhere here then.
Using www.missingU.com/irc/ as a public webchat client ( behind
fireway, so no inhouse chat ), getting the following response
http://www.chickshardware.com/emb/mouselike/008846881x3.html
On Tue, Nov 27, 2001 at 07:02:50PM +0100, Newton, Philip wrote:
(And I'm not sure whether $x is distinguishable from ($x = undef). Hm...
They don't seem to be currently distinguishable AFAICT.
[robin@penderel robin]$ perl -MDevel::Peek -e 'Dump $x; $y = undef; Dump $y;'
SV = NULL(0x0) at
On Wed, Nov 21, 2001 at 12:20:15PM +, Dominic Mitchell wrote:
-rwxrwxrwx 1 bin 25802 Mar 21 12:07 unix
Is that... what I think it is?
25K? I've never seen one much less than a megabyte.
.robin.
--
Sometimes I sit in front of my washing machine and contemplate the
worthlessness of
On Mon, Nov 19, 2001 at 09:56:47AM +, Matthew Byng-Maddick wrote:
This is indeed correct,
Ah, consistency at the expense of reasonableness! :-)
Wha's the operating system in which if you drag a file icon to the
printer, it will print the file *and then delete it*?
.robin.
--
It really
On Wed, Oct 31, 2001 at 06:10:11AM -0800, Dave Cross wrote:
If I write can write an article for either perl.com or perlmonth,
then I'm going to offer it first to perl.com. Sure I don't _need_
the $250, but it's nice to have if it's available :)
I'm still dubious about how much effect the
On Wed, Oct 31, 2001 at 05:47:44PM +0100, Merijn Broeren wrote:
http://www.statistics.gov.uk/products/p5768.asp
Page 6, the seasonally adjusted table. No particular bias.
Isn't that *because* it's seasonally adjusted?
I won't pretend I understand exactly what they're doing, but the
note in
On Wed, Oct 31, 2001 at 06:19:33AM -0800, Randal L. Schwartz wrote:
my %foo;
$foo{$a[$_]} = $a[-1-$_] for 0..$#a;
my (%foo, $i);
$foo{$_} = $a[--$i] for @a;
Hmm.
.robin.
--
Sometimes I sit in front of my washing machine and contemplate the
worthlessness of life. My washing machine isn't
On Tue, Oct 30, 2001 at 09:03:18PM +, Dave Cross wrote:
Secondly, what is an easier way to populate %foo?
[blank space inserted]
C@foo{@a} = reverse @a, presumably.
Is that sample intended to be indicative of the kind of code you'll be
On Wed, Oct 24, 2001 at 07:18:49PM -0400, anathema wrote:
Does it stand up to soup? I loved my last keyboard, it's a pity
that I've had to replace it.
Didn't rinsing it work then?
.robin.
--
That would be a glorious life, to addict oneself to perfection; to
follow the curve of the
On Wed, Oct 24, 2001 at 11:40:34AM +0100, Mark Fowler wrote:
Thursday after the first Wednesday of the month. Official meeting is on
Thursday the 8th.
That is also the Thursday after the first Thursday of the month in
this case, you have to admit.
.robin.
On Wed, Oct 24, 2001 at 12:35:31PM +0100, James A. Duncan wrote:
I was under the impression that code spat out by B::Deparse was
passing any test that wasn't reliant on order of BEGIN blocks (and
therefore things like pragmata where a little bit squew whiff[0]).
That accounts for 90% of the
Is there a reason that you have to use flat text files to store these
data? (It seems like borderline insanity, not that that need be a bad
thing).
If you had the information in an RDBMS, it would be much easier to
generate the sort of report you want (and would probably be quicker
too).
On Wed, Oct 24, 2001 at 09:30:13AM -0400, Mz anathema wrote:
Can anyone suggest a good way to recover a soup-soaked keyboard?
Wash it under the tap, and leave it to dry thoroughly (upside down
somewhere warm).
Sounds mad, but it's worked for me in the past. Remember to unplug it
first :-)
On Wed, Oct 24, 2001 at 08:19:39AM -0700, Dave Cross wrote:
My latest work was checked into CVS on Penderel. I'll check and
see what I've got in my local copy.
I would guess that what you checked into CVS is still in
/home/cvsroot.old/nms
Presumably that could easily be copied into the new
On Wed, Oct 24, 2001 at 05:05:22PM +0100, Greg McCarroll wrote:
however as the guys who admin the box do so on a voluntary basis, i
would take a personal backup of anything important you put on the
box
Where's the logic in that? Are volunteers more likely to make
mistakes resulting in
On Wed, Oct 24, 2001 at 05:45:39PM +0100, Greg McCarroll wrote:
i was more implying that you had the right to bitch at paid
professionals, with the people who currently admin the box the only
right you have is to buy them beer ;-)
I agree :-)
sorry I misunderstood you
.robin.
--
Images
On Tue, Oct 23, 2001 at 12:01:38PM +0200, Newton, Philip wrote:
Ranks in the Perl arcana along with ignoring lines beginning with dot
and some letters
My perl doesn't seem to do that. Or do they have to be particular
letters?
The most arcane special case that I know about is that a spurious
On Tue, Oct 23, 2001 at 02:44:41PM +0100, Richard Clamp wrote:
+sub gay::is { http://www.cookwood.com/cgi-bin/lcastro/perlbbs.pl?form=4700; }
I think you want s/form/read/ there.
.robin.
I'm surprised no one has mentioned the Mythical Man Month, which
despite its age is still delightfully sane and readable.
One of my favourites is _Inner Loops_ by Rick Booth
(http://cseng.aw.com/book/0,,0201479605,00.html), for
its sheer enthusiasm. A book-length hymn to the joys
of performance
How could I forget Edward Tufte's beautiful, beautiful book
_The visual display of quantitative information_.
I've never, of course, been called upon to display quantitative
information in a visual form - but oh, what a book!
http://www.edwardtufte.com/1576494545/tufte/books_vdqi
.robin.
Whenever I restart my computer, a dialogue box appears saying Legal
Notice:
You are accessing a controlled system that contains commercially
sensitive and confidential information. Access to this system is
granted for the sole purpose of conducting work related to [company].
Use of these
On Thu, Oct 04, 2001 at 07:54:22AM +0100, Greg McCarroll wrote:
[...] the long sequences (overruns) on rpc statd in the logs?
We still get those on our boxen sometimes.
It makes me feel very smug that I upgraded months ago :-)
.robin.
--
Sometimes I sit in front of my washing machine and
On Wed, Sep 26, 2001 at 02:23:31PM +0100, Simon Wilcox wrote:
Err, it's about the same size as most o'reilly books and about 1 thick.
It's from their blue period, with grasshoppers on the front.
What about the binding?
Should we do a series of reviews of technical books, concentrating
On Mon, Sep 24, 2001 at 08:47:50PM +0200, Paul Johnson wrote:
Actually, I'd think this would be a good candidate for a warning,
which you would have got if you had explicitly compared to $.
I agree.
By the way, what version did that code come from?
I took it from perl@10996, though it's the
I propose changing the format of the access_log from common to
combined, so that the User-agent and Referer are also logged. Does
anybody object?
.robin.
--
select replace(a, CHR(88), replace(a,,'')) from (
select 'select replace(a, CHR(88), replace(a,,)) from (
On Fri, Sep 21, 2001 at 03:16:53AM -0700, Dave Cross wrote:
[...] the right answer for the wrong reason, [...]
This was puzzling me, but I think I've got it.
They interpret it as C($i) = (1, 2); -- is that it?
.robin.
This discussion has given me an idea for an unusual (but valid) way
of quoting strings. For example:
use strict;
my $x = hello =;
print $x
On Fri, Sep 21, 2001 at 06:30:25AM -0700, Dave Cross wrote:
No need to change anything. We'll just tell 'em that's what
$i = (1, 2);
does. No-one will ever know the difference :)
Do you mean to say that people use untied variables?
Where's the fun in that?
.robin.
Is there a Win32 user out there who would be prepared to make a PPD
file of Want-0.05 for me? Most Win32 users are limited to only three
kinds of context at the moment, poor things.
.robin.
On Mon, Sep 17, 2001 at 05:02:52PM +0100, Robin Houston wrote:
Brazil
Actually, I'm wondering whether Casablanca might be better.
Difficult call. I just hope I'm never in a burning building
with the last remaining copy of each, and only enough time to rescue
one.
.robin.
On Mon, Sep 17, 2001 at 05:38:24PM +0100, Mark Fowler wrote:
I've got a windows box[1] and I'll have a go if you want.
I love you :-)
1) What's a PPD file? Is that like a PPM?
I think that the PPM (Perl Package Manager) installs PPD files
(no idea what it stands for)
Ah hold on. PPD is
On Mon, Sep 17, 2001 at 05:50:59PM +0100, Robin Houston wrote:
VC++ 6m if you have a recent (6xx) ActivePerl.
This isn't an obscure sub-version.
It is simply that the m key is next to the comma.
.robin.
On Fri, Sep 14, 2001 at 06:36:57PM +0100, Dave Cross wrote:
And one of the few people who gets specific mention is Robin Houston :)
Oh yes?
Tell me more!
.robin.
--
God! a red nugget: a fat egg under a dog.
'Recently the International Day of Peace was moved from the third
Tuesday of September to the Tuesday following the second Monday of
September.'
http://www.worldpeace.org/culture.html
.robin.
On Thu, Sep 13, 2001 at 03:22:35PM +0100, jo walsh wrote:
penderel went bork for a little while, spitting out erudite stuff about
scsi bus errors :/
I was trying to compile Python on it, at the time it died.
Perhaps it took exception.
.robin.
On Mon, Sep 10, 2001 at 04:34:00PM +0100, Simon Wilcox wrote:
I *should* know this I feel sure [1] but can anyone point to the design
decision that led to us all using Hex ?
It's a convenient compaction of binary notation, as used by computers
everywhere. Each hex digit corresponds to a
On Mon, Jul 09, 2001 at 05:05:14PM +0200, Philip Newton wrote:
I want an alternative to MySQL; it has to be free. Is there such an
alternative?.
At least one of your feet is such that the other is not better than it.
Put forward such a foot.
.robin.
--
Have you been certain you came to me
On Fri, Jul 06, 2001 at 02:09:25PM +0100, Greg McCarroll wrote:
for a number of years i've fancied entering the ICFP's competiton
http://cristal.inria.fr/ICFP2001/prog-contest/
with a Perl entry, would anyone else be interested in forming
a team?
Could be a laugh. It's worth bearing in
On Wed, Jul 04, 2001 at 08:26:45PM +0100, David Cantrell wrote:
Or at least, that was the only way I could cast floats to int or vice
versa back whn I was writing Java.
Eh?
[robin@dev robin]$ cat Foo.java
public class Foo {
public static void main (String[] args)
{
double b = 3.14159;
On Tue, Jul 03, 2001 at 03:36:35PM +0100, Matthew Byng-Maddick wrote:
I like Perl too. And C. Not so fond of Java. Am trying to learn Haskell.
Does that make me weird?
No, i don't think so. But programming languages are a religious topic,
aren't they? Often i think people just feel threatened
On Tue, Jul 03, 2001 at 04:54:07PM +0100, David Cantrell wrote:
If Vignette's is a good application for it then thank fuck I haven't seen
any bad applications of it.
Perhaps Vignette's implementation of tcl really really sucks (wouldn't
surprise me seeing how shit they are at ... well,
On Tue, Jul 03, 2001 at 05:27:02PM +0100, David Cantrell wrote:
So, as someone who probably knows tcl better than I do - is it a tclism
or a SSism that you have to use a different number of depending on
how deeply nested your code is?
You mean [ right?
It's an SSism, and an
On Mon, Jul 02, 2001 at 07:41:36AM +0100, Greg McCarroll wrote:
does anyone know how to find out what font a wterm is using, or indeed
an xterm - i've tried xwininfo and it doesnt give this information
I don't know what a wterm is, but an xterm will use whatever font
you tell it to. You
On Fri, Jun 29, 2001 at 02:29:39PM +0100, Cross David - dcross wrote:
The new design of http://www.perl.com - good or bad?
execrable.
.robin.
On Thu, Jun 28, 2001 at 12:21:13PM +0100, Lee Goddard wrote:
I'd be really really careful about going for the postgrad option:
I did it last year and the level of frustration was very high.
A good friend of mine is at Sussex at the moment, doing A-life
stuff at cogs. Is that what you did? He
On Wed, Jun 27, 2001 at 04:01:57PM +0200, Niklas Nordebo wrote:
Couldn't you just link /dev/dsp to a file?
I doubt it. The application would die when its ioctls failed, I
would think.
OTOH you *could* write a small device driver which behaves like
a proper sound driver, but saves the data to a
On Wed, Jun 27, 2001 at 07:06:07PM +0200, Marcel Grunauer wrote:
During a conversation on #london.pm the topic of rewarding tasks
came up. It seems you can take small projects to completion, but
not big ones; I've certainly never worked for a company that had
seen a big project all the way
On Mon, Jun 25, 2001 at 12:30:12PM +0200, Marcel Grunauer wrote:
I'm about to try that. Let me know how it goes :-)
I got perl@10907 to compile with only a few minor problems,
so there is bleadperl on this box now... at last!
kew-wel.
what problems?
.robin.
--
It really depends on the
69 matches
Mail list logo