note
particle
<p>my method is similar, but different...</p>
<code>
## let's say bar is a method in foo
sub bar
{
my( $self, @args )= @_;
eval { $self->method( @args ) };
$@ and $self->raise_error( @_ ) and return undef;
}
## called like:
my $foo= foo->new();
my $result= $foo->bar( @args )
or warn $foo->Error();
</code>
<p>the method sets an error and returns <code>undef</code>, allowing the caller to deal with the error as it sees fit. of course, you might want to handle a method that can return 0 by using <code>defined</code></p>
<p>~Particle *<em>accelerates</em>*</p>
<!-- a handy place to keep tags
<code>
.
</code>
<blockquote><em>.</em></blockquote>
<strong>.</strong>
<ul>
<li>.</li>
<li>.</li>
</ul>
-->
230799
230811