Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $table->associate($db, \&key_sub);
    $table->db_put(1,"x|w60");
    $table->db_put(2,"y|w61");
    
  2. or download this
    Argument "w60" isn't numeric in numeric comparison (<=>) at hhh.pl lin
    +e 11.
    Argument "w61" isn't numeric in numeric comparison (<=>) at hhh.pl lin
    +e 11.
    Argument "w60" isn't numeric in numeric comparison (<=>) at hhh.pl lin
    +e 11.
    Argument "w61" isn't numeric in numeric comparison (<=>) at hhh.pl lin
    +e 11.
    
  3. or download this
    my $digits = qr/^\d+$/;
    
    ...
       return $a <=> $b if ($a =~ $digits and $b =~ $digits);
       return $a cmp $b;
    }
    
  4. or download this
        count = perl_call_sv(CurrentDB->compare, G_SCALAR);