1, send mail on an SMTP server that does not require authentication#!/usr/bin/perl-wUse NET::SMTP;$SMTP = net::smtp->new ($mail _server); #邮件服务器地址$smtp->mail ($send _user); #发件人$smtp->to ($recv _user); #收件人$SMTP->data ();$smtp->datasend ("Subject:
subroutine definition and return valueSub sum{ print" called sub-program \ n"; $a $b # The latter behavior returns a value }$a=1; $b=; $s # 34 Calling SubroutinesSub-program parameters, parameters fixed (The following example can only 2
/* string search is the main application of regular expressions. In PHP, the main function that can be used to match regular expressions in the Perl style is preg_match (). The function prototype is as follows int preg_match (string pattern, string
I recently used Perl (using Win32: Ole) to operate Excel. I didn't find similar content on the Internet, so I had to find some beginner knowledge in a book, and I had a great deal with myself, finally, I am a little confused. Here I will make a
######################################## #################### Function: Get the current time# Parameter: None# Return Value: return time in the format of yyyymmddhhmmss######################################## ###################Sub get_time{My ($
Source: http://www.regular-expressions.info/vbscript.html
VBScript's regular expression supportVBScript has built-in support for regular expressions. if you use Vbscript to validate user input on a web page at the client side, Using VBScript's
Usage: Select filehandle
Returns the selected file handle. You can set the current file handle to the default output. the default output of "write" and "print" without the specified handle is set to filehandle 2. variables related to the output
1. Perl uses use spreadsheet: parseexcel; and use spreadsheet: writeexcel; it cannot read or write the same Excel file at the same time.
Using Win32: Ole ---- for Windows seems acceptable, but not for Linux.
2. PerlFormulas and formats used in
Programming with Perl and Writing Control in the last two days
ProgramAnd CGI. I found this is really a good thing.
CodeVery concise and error-prone. I have been writing my hand for a day, but I have never made several mistakes. Finally, it
1. Since each Hash has a private iterator (iterator), the loop using each can be nested, because different hashThere are different iterator. Although this is just a footer, we should also tell you that you can use keys or valuesFunction, reset the
1. $ where = index ($ big, $ small); the character position starts from 0. if the substring is found at the beginning of the string, index returns 0. if a character is followed, 1 is returned, and so on. if the substring does not exist,-1 is
Perl tutorial
Http://www.cbi.pku.edu.cn/chinese/documents/perl/index.htm
Getting started with Perl
Http://developer.51cto.com/art/201009/224638.htm
Learning Perl 1 helloworld**************************************** ******Brief Introduction:Perl is
Perl is short for Practical Extraction and report language. It is designed by Larry Wall and is constantly updated and maintained by him. perl is powerful and flexible in advanced languages (such as C) and supports code Encapsulation by modules. The
# Recently, I experienced Notes crash problems several times. # It wasted me a lot of time to terminate Notes completely and then restart it, # so I wrote this Perl script to save myself. Also hope it's helpful to you when you read these comments #
9.1 search scalarSearch by indexIndex string, substringIndex string, substring, start_positionThe index function starts running from the left side of the string and searches for substring.
To the position of the substring. 0 indicates the leftmost
Yesterday I read cawan's article "SQL injection is a way of thinking about database penetration", and it feels really good. So I implemented the method proposed in this article using Perl. This program is only a POC version, so I only implement the
Command :#Notes: remark announcementExample: # This program is a demo Annotation
-------------------------------------------------------------------------Command: PrintSyntax 1: Print filehandle listNote: This filehandle serves as a bridge between I
Iii. Java-related
The reason why the shell program calls the Java program is: the Excel file generated by the Perl script, where the entry URL cannot be decoded to recognize Chinese characters (related to Linux coding, you cannot change the system
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service