in reply to Re^2: An object replacing itself
in thread An object replacing itself
While I agree with dragonchild and diotalevi that you shouldn't do this, I'm not quite sure it's a terrible idea, per se. The only reason I would advise not to use it is, in Perl, there's a very common idiom for iterators:
my $notelist = My::Dashboard::Note->list; while (my $note = $notelist->next) {}
What you're trying to do may be common in VB-land, and there may be nothing inherently wrong with it, but you're not writing VB code. You're writing Perl code, and you should try to write things in a Perlish manner.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: An object replacing itself
by dragonchild (Archbishop) on Sep 24, 2004 at 00:23 UTC | |
|
Re^4: An object replacing itself
by ryantate (Friar) on Sep 23, 2004 at 22:25 UTC | |
by Anonymous Monk on Sep 24, 2004 at 00:37 UTC |