Log in
پنج شنبه,۰۷ مرداد ماه ۱۳۸۹مطابق با
١٦ شعبان ۱۴۳۱هجرى قمرى

debugger for hash variable
debugger for hash variable
require Data::Dumper; print STDERR “Line ” . __LINE__ . “, File: ” . __FILE__ . “\n” .
Data::Dumper->new([$columns, \@fields],[qw(columns fields)])->Indent(1)->Useqq(1)->Dump;
require Data::Dumper;
print STDERR “Line” . __LINE__ . “, File: ” . __FILE__ .
Data::Dumper->new([$applConfigHash],[qw(columns)])->Indent(1)->Useqq(1)->Dump;
Cached queries with bind variables. Here an Example:
my %attr = ( PrintError => 0, RaiseError => 0 );
my $dbh=DBI->connect(”dbi:mysql:$db:$server”, $usr, $pwd, \%attr)
or do { warn “Cannot connect to $db:$server; trying another method” };
# The SQL contains a question mark to indicate a bind variable.
$sth=$dbh->prepare( "
SELECT name, location
FROM megaliths
WHERE name = ?
AND mapref = ?
AND type LIKE ? " );
$sth->bind_param( 1, "Avebury" );
$sth->bind_param( 2, $mapreference );
$sth->bind_param( 3, "%Stone Circle%" );
$sth->execute();
while (my $row=$sth->fetchrow_arrayref) {
print join("t",@$row),"n";
}
$dbh->disconnect;
Post your comment
Archives:
- Mercurial & hg view
- jPortal wordpress theme
- WordPress Careers plugin
- Check For Email pattern
- WordPress ODLinks Plugin
- WordPress Classifieds Plugin
- Clean up the Ubuntu
- Persian philosophs and sciences
Subpages
- Partition and Format
- Application in chroot
- Realplayer and IE
- SSL & Serverzertifikat
- Debian Package
- Solaris Package
- Linux commands
- Web service
- PHP
- PERL
Categories:
Root Category
Links
- (IE)HTML - اديتور به فارسي و لاتين
- Online Graphic Plotter
- Online scientific calculator
- تقويم ساليانه
- تبديل کُدهای رايج
- تبدیل تاریخ شمسی به میلادی
- فارسی نويس
- تبديل خط فينگليش به فارسى
Local times
- CEST: 2010-07-29 20:11
- EDT: 2010-07-29 14:11
- IRDT: 2010-07-29 22:41
- KST: 2010-07-30 03:11
- PDT: 2010-07-29 11:11





