Perl DBI函数

Perl DBI函数,第1张

概述use DBmodule; $db_s=new DBmodule; $db_key=$db_s->connect_db('w3a_system','localhost','root','ferbernet!@#!@!'); $abk=$db_s->select_db($db_key,"select * from w3a_xser"); %log_result=result($abk,'<scrip
use DBmodule; $db_s=new DBmodule; $db_key=$db_s->connect_db('w3a_system','localhost','root','ferbernet!@#!@!'); $abk=$db_s->select_db($db_key,"select * from w3a_xser"); %log_result=result($abk,'<scriptaa>'); if(%log_result){ print "匹配"; for }else{ print "不匹配"; } sub result{ local($sql)=shift; local($method)=shift; # clean List array # print execute result  my %target=(); while($List=$sql->fetchrow_hashref()){ # $regex=$List->{'method_regex'};      if($method=~m/$List->{'method_regex'}/) { $target{'ID'}=$List->{'ID'}; $target{'method_name'}=$List->{'method_name'}; $target{'method_level'}=$List->{'method_level'}; $target{'method_switch'}=$List->{'method_switch'}; } } return %target; }
总结

以上是内存溢出为你收集整理的Perl DBI函数全部内容,希望文章能够帮你解决Perl DBI函数所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1278248.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-09
下一篇2022-06-09

发表评论

登录后才能评论

评论列表(0条)

    保存