Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: using has_selected_record() of Net::MySQL

by critter (Acolyte)
on Aug 11, 2005 at 11:54 UTC ( [id://482916] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $affected_rows = $mysql->get_affected_rows_length;
    
  2. or download this
    if ( $mysql->has_selected_record > 1 ) {
       #do something;
    } else {
       #do something else
    }