讀文檔: http://search.cpan.org/~gaas/Digest-MD5-2.39/MD5.pm後, 非常有用章段: This is useful when calculating checksum for files: use Digest::MD5; my $file = shift || "/etc/passwd"; open(FILE, $file) or die "Can't
#!/usr/bin/perl -wuse Net::FTP;use strict;my $server='IP地址';my $user = '使用者名稱'; my $pw = '密碼'; my $ftp = Net::FTP->new($server) ; $ftp->login($user,$pw) or die "login failed!/n";print "login ok! starting list files on
標籤:本文將對目前最常用的四種動態網頁語言Perl(Practical Extraction and Report Language)、PHP(Hypertext Preprocessor)、ASP(Active Server Pages)、JSP(JavaServer Pages)進行一些技術性的比較。 Perl Perl(Practical Extraction and Report Language)是一種很古老的指令碼語言。最初的Web應用大多是用Perl編寫的,Perl很像C語言,
標籤:perl morbo mojoliciousUsing a hash as a reference is deprecated at template example/index.html.ep line 8Using a array as a reference is deprecated at template example/index.html.ep line 8很簡單 因為沒有正確使用hash跟數組造成的%= %$entries->{$id}->{‘id‘}
一個轉換程式,簡單的把DNA序列中的A轉變成T,第一種情況沒有使用私人變數。複製代碼 代碼如下:#!/bin/perl#下面是一段DNA序列 $DNA=ATTATATAT;#這裡是我們的序列 $result=A_to_T($DNA); print "I changed all $DNA A to T, and the we get the result $result\n\n"; sub A_to_T { my ($input)=@_;
How to get all the members in user group by using LDAP in Perl?,ldapperlAbout LDAP:LDAP stands for Lightweight Directory Access Protocol. It is usually used to fetch (and sometimes update) data in a directory of people.Using Net::LDAP module in