码迷,mamicode.com
首页 >  
搜索关键字:use    ( 28727个结果
perl post函数获取网页内容及解析数据的例子
#!/usr/bin/perl -w# 程序代码只是简单说明获取解析网页内容及匹配模式使用的例子,逻辑并不是很严密use utf8;binmode(STDIN, ':encoding(utf8)');binmode(STDOUT, ':encoding(utf8)');binmode(STDERR,...
分类:Web程序   时间:2014-07-24 09:46:53    阅读次数:260
perl脚本获取网页内容
# 使用LWP模块的get函数获取网页内容。use LWP::Simple;my $doc=get("http://www.csdn.net");# 获取网页内容后可以对内容进行提取或者其它处理# 将网页内容打印出来print $doc;# 使用post函数向web服务器提交请求。use LWP::...
分类:Web程序   时间:2014-07-24 05:08:28    阅读次数:237
perl脚本中对数据库的操作
perl中DBI模块为mysql数据库相关操作的接口,首先需要在环境中安装DBI模块。perl处理数据库操作的大致步骤如下:#声明使用DBI模块use DBI;#设置数据库连接参数,指定连接数据库名,数据库所在服务器ip地址,连接用户名,密码# db_name为要连接的数据库名,ip为数据库所在服务...
分类:数据库   时间:2014-07-24 05:07:28    阅读次数:343
perl脚本中对字符编码的支持
# 使perl程序支持utf8宽字符编码,不添加下面几行打印中文字符时将出现Wide character in print警告或错误。use utf8;binmode(STDIN, ':encoding(utf8)');binmode(STDOUT, ':encoding(utf8)');binmo...
分类:其他好文   时间:2014-07-24 05:06:38    阅读次数:258
JavaScript Patterns 7.1 Singleton
The idea of the singleton pattern is to have only one instance of a specific class. This means that the second time you use the same class to create a...
分类:编程语言   时间:2014-07-24 05:01:38    阅读次数:422
【Solr基础教程之X】配置文件:Solr.xml SolrConfig.xml Schema.xml
1、关于默认搜索域 If you are using the Lucene query parser, queries that don't specify a field name will use the defaultSearchField. The DisMax and Extended DisMax query parsers do not use this value.  ...
分类:其他好文   时间:2014-07-23 22:38:28    阅读次数:279
hdu1075What Are You Talking About (字典树)
Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...
分类:其他好文   时间:2014-07-23 22:33:38    阅读次数:281
glTexGen
【glTexGen】 Rather than having to explicitly provide a texture coordinate for each vertex, we can use texture coordinate generation (texgen) functions....
分类:其他好文   时间:2014-07-23 20:48:55    阅读次数:227
Virtualbox mouse move in and out and file share with windows
How to use Virstalbox to share files with Linux and Windows, and to move the mouse in and out Virtualbox freely without click Ctrl key, herewith what I have done to achieve both....
分类:Windows程序   时间:2014-07-23 18:10:36    阅读次数:375
eclipse提交项目到github
1.在https://github.com ? new repository 2.在eclipse中new project ?比如:Test项目 3.右击"Test"->Team->share project... ?->select a repository type:Git 勾选 ?Use or create repository in parent fo...
分类:系统相关   时间:2014-07-23 17:39:31    阅读次数:306
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!