perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wiles <>
Subject Re: [MP2] possible pnotes bug?
Date Tue, 14 Mar 2006 01:29:57 GMT
On Mon, 13 Mar 2006 14:55:32 -0800
"Philippe M. Chiasson" <> wrote:

> Reviving a somewhat old thread here, so for context, here it is,
> archived:
> Basically, I think documenting this as a feature was not such a good
> idea. Who can expect that this is correct/expected behaviour
> my $foo = 123;
> $r->pnotes('foo' => $foo);
> $foo = 456;
> $r->pnotes('foo') # <== now 456
> I understand _why_ this hapenning, but I think that if it's not a
> bug, it's certainly a very strange behaviour, compared to, say $note
> {foo} = $foo; I would think that the casual user would be bitten by
> something like this, even though it's documented.
> Is there any good reason _not_ to make this pnotes code behave just
> like a hash, and store a copy of the scalar ?

  I didn't know about that "feature", so I would have be completely 
  lost if I had run into personally.  I agree it should be changed and
  behave as you would expect it to.  

  The only downside I can think of is that it will break anyone who 
  is taking advantage of it.  

   Frank Wiles <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message