首页 软件开发 代码片段 perl ( Page 12 )

perl 204

#Perl
dijkstra的perl实现

use strict; my @path = (); my @lastpath = (); my $count; my $inputfile = "input"; my $max …

2015-12-14 824

#Perl
查看Linux下的个人主目录文件变化

#!/usr/bin/perl use strict; use warnings; for (qw <"system" "system.bak">){ die "err…

2015-12-14 367

#Perl
Perl 使用 DBI 连接到 MySQL 数据库

$dsn = dbi:mysql:northwind; $username="root"; $password="letmein"; $dbh = DBI->connect(…

2015-12-14 430

#Perl
Perl 使用 OLE 自动化来创建 Excel 图表

#!/usr/bin/perl -w use Win32::OLE; use Win32::OLE::Const 'Microsoft Excel'; $class = 'Exce…

2015-12-14 814

#Perl
Perl 使用 News::NNTPClient 访问新闻组

use News::NNTPClient; $nntp = new News::NNTPClient('news.yourserver.com'); ($first, $last)…

2015-12-14 502

#Perl
Perl 创建一个新的 ODBC 数据源

use Cwd; use Win32::ODBC; $DriverType = "Microsoft Access Driver (*.mdb)"; $DSN = "Email C…

2015-12-14 452

#Perl
Perl 使用 Net::FTP 从 FTP 上下载文件

use Net::FTP; $ftp = Net::FTP->new("ftp.cpan.org", Timeout => 30) or die "Could not …

2015-12-14 344

#Perl
perl的ftp模块,远程操作linux服务器

use Win32::Internet; $I = new Win32::Internet(); $host = "服务器IP地址"; $user = "用户名"; $pass =…

2015-12-14 169

#Perl
Perl6 Net::FTP Sample

#!/usr/bin/env perl6 use Net::FTP; my @locals = ( "/update/", ); my @remotes = ( "/usbip/"…

2015-12-14 543

#Perl
在window平台下自动截屏

use Win32::Clipboard; use Win32::GuiTest qw/SendKeys/; while(1) { my @time = localtime(tim…

2015-12-14 257

#Perl
localtime

#!/usr/bin/perl -w #from 1970-1-1 to now, total seconds. my $time = time(); my $local_time…

2015-12-14 999

#Perl
格林高丽日期与普通日期的互相转换脚本

#!/usr/bin/perl #Caution: The following program doesnot provide ANY WARRANTY for commercia…

2015-12-14 825
1 10 11 12 13 14 17