A Perl application database uses the DBM package configured by itself to create and operate a database, therefore, the DBM package and other similar packages can be considered as a database extension. The other is to use the DBI package or similar
A brief description of http://www.perldoc.com/perl5.6/pod/perlmodlib.html for some common modules
Use modules in Perl:Module: http://www.cpan.org/modules/01modules.index.htmlInstallation module:1. Perl makefile. pl2. Make3. Make Test4. Make
This article will provide some examples of Perl connections to Microsoft SQL Server databases. Perl scripts run on Windows and Linux platforms.
Windows platform
If you run a Perl script under the Windows platform, it is recommended that you use a
ASP. NET/perl. NET database access exampleOne of the features of. net Framework is its ability to handle multiple ages. third party compiler vendors can create and implement a compiler targeted for. net runtime. in fact, over the course of the next
This article describes three things: 1: 2: Environment configuration 3: Operation script content 1: MS has never provided SQLServerforLinux, so do not try to install SQLServer on Linux, however, you can use ODBC to connect to the SQL Server database
Perl language learning notes 9 Regular Expressions for text processing, perl Language Learning
1. Replacement
S/PATTERN/REPLACE/; # returns the Boolean value of whether the replacement is successful.
You can use capture variables, such as s/(\ w)/$1/
The most commonly used package for Perl access to a database is DBI, which can be found in www.cpan.org. Also need to install the corresponding database driver package, such as Dbd::mysql, Dbd::oracle, dbd::sybase or DBD::ODBC.First, the basic
Perl typically uses DBI to access the database, so after the system has FreeTDS installed, you can use DBI to access the MSSQL database via FreeTDS, for example:
The code is as follows
Copy Code
Using DBI;My $cs =
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.