[CDBI] Re: Trouble with Perl's reverse function

"Edward J. Sabol" <sabol-2oVx0MVsMgiP/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
Perrin suggested:
> Or maybe something squirrely in this:
>
>> if ( my $zone = ($class->search( mname => $domain ))[0] ){
>
> if ( my $zone = $class->search(mname => $domain)->first ) {

Looks like Ricardo already solved Carlos' problem, but I just thought that
I'd chime in in favor of changing "(...)[0]" to "->first" anyway. I haven't
benchmarked it personally, but I believe this to be an easy and very
worthwhile optimization to make.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.