Help for this page

Select Code to Download


  1. or download this
    for my $cd (@cds) {
        print  $cd->name, $/;
        printf " - %d: %s\n", $_->num, $_->song->name
            for sort { $a->num <=> $b->num } $cd->tracks;
    }
    
  2. or download this
    my $select = sprintf "select %s from $table where %s",
        join(","     => @cols),
    ...
    
    my $sth = $dbh->prepare($update);
       $sth->execute( values %data, values %constraints );