XML Tutorials - Herong's Tutorial Examples
This XML tutorial book is a collection of notes and sample codes written by the author while he was learning XML himself. Topics include introduction to XML, DTD (Document Type Definition), XSD (XML Schema Definition), XPath (XML Path Language), XSL (Extensible Stylesheet Language), XSLT (XSL Transf... 2023-03-09, 11651👍, 3💬
💬 2022-07-22 Helen: This is very helpful!
💬 2016-05-07 mehari: this tutorials helps many trainers through out the world, thanks!
Installing NMake 1.5
This section provides a tutorial example on how to install the 'make' utility on Windows, NMake 1.5, to help installing the RPC::XML Perl module. 2023-05-12, 24143👍, 21💬
💬 2023-05-12 Fathi: thanks for providing such a tool
💬 2023-01-31 Bob Bobbette: meaningful comments. Thanks! ☺
💬 2017-11-16 Ye Hongshaui: Very good
💬 2017-11-02 lxddd: thank you very much!
💬 2017-08-18 zhaogt: verry good!
Downloading Apache HTTP Server 2.2.25 for Windows
This section describes how to download Apache (HTTP Server) 2.2.25 binary distribution for Windows systems. 2023-05-10, 12427👍, 16💬
💬 2020-04-20 Daniel Morris: This service is best service for best people
ReadParse() - Parsing Web Form Input Values
This section describes functions provided in the CGI library, cgi-bin.pl. It also provides a tutorial example on how to use the ReadParse() to parse Web form input values and other functions. 2022-09-22, 3250👍, 9💬
💬 2017-08-29 gerry: coo tutorial
💬 2015-10-30 Herong: Thank you, Yair. Your comment shows that form input values are processed correctly on my site for Hebrew language.
Running Perl Scripts on Linux Systems
This section provides a tutorial example on how to run Perl scripts on Linux systems. To make a Perl script file executable, you need to add '#!/usr/bin/perl' to the beginning of the script. 2022-09-14, 53952👍, 10💬
💬 2022-09-09 Herong: Bharathi, there is no upload option in this tutorial. Can you provide more details?
💬 2022-09-05 Bharathi: I have perl script locally but unable to run this with file upload option. How to do it?
💬 2021-09-09 Meaningful comment: Is this a meaningful comment?
💬 2017-10-24 Herong: sdre, what is the issue are you referring to?
💬 2017-10-23 sdre: That's an issue with the Perl script, not with running the script itself, and it deserves another question (not here, on Stack O...
Calculator.pl - CGI Application Example
This section provides a tutorial example of Perl CGI application: Calculator.pl - Returning the result of any arithmetic expression like a calculator. 2022-05-10, 1831👍, 3💬
Downloading and Editing WSDL Document
This section provides a tutorial example on how to download the WSDL document from the Web service provider. You can change port.address[@location] to a localhost URL to local testing. 2022-01-13, 30536👍, 16💬
💬 2022-01-13 Harsha: Thank you so much. Made my day
💬 2019-09-15 Herong: Any more information about this Web service?
💬 2019-09-10 previsualizacion: http://18.104.22.168/wsGetPdf/service s/view?wsdl
Retrieving and Setting HTTP Cookies
This section provides a tutorial example on how to retrieve cookies from the HTTP request header and set cookies to the HTTP response header. Cookie objects are created with the CGI::Cookie class. 2021-01-08, 839👍, 6💬
💬 2021-01-02 Herong: Rajat, show us your request dump, including headers. Maybe something wrong in your request.
💬 2020-12-22 Rajat: Thank you sir for your response. Actually issue is when i m trying to do a post using mechanize object i guess its blocking the ...
💬 2020-11-22 Herong: Rajat, LWP-UserAgent-Request.pl script only fires a single HTTP request to single Web server. To get 3rd party cookies, you need...
💬 2020-11-12 Rajat: Thanks sir i have tried out ` "LWP-UserAgent-Request.pl - GET, POST and Cookies" tutorial` but that didn't work. The cookie is a...
💬 2020-11-11 Herong: Rajat, you can follow "LWP-UserAgent-Request.pl - GET, POST and Cookies" tutorial to download cookies from Website.
printenv.pl - Testing Perl CGI Environment
This section provides a tutorial on how to modify the Perl CGI test script, printenv.pl, and run it to verify Apache 2 Perl CGI configuration. 2020-12-14, 2559👍, 2💬
💬 2020-12-13 Herong: Alan, yes. You can run a similar Perl CGI script on a Linux server and you will get a different set of environment variables.
💬 2020-12-12 Alan: Under Linux/unix at least you can also do a chmod +x on the program and run it from a command line to test. The CGI environment ...
Perl Tutorials - Herong's Tutorial Examples
This Perl tutorial book is a collection of notes and sample codes written by the author while he was learning Perl language himself. Topics include ActivePerl, data types, subroutines, debug, references, objects, open, binary, file, directory, DBM, MySQL, regular expression, RPC::XML, XML::Simple, S... 2020-11-12, 8451👍, 6💬
💬 2020-11-12 Rajat: Hi Herong sir, I am getting error while doing $mech->post for a request every time.Error looks like this `read timeout at /usr/s...
💬 2017-10-23 guru: That's an issue with the Perl script, not with running the script itself, and it deserves another question (not here, on Stack O...
💬 2017-10-06 drhvr: mysql I added root as user and password.in singlequotes. It works great
💬 2014-03-17 Steven Klotz: Hi Herong, I found this web site while looking for PERL examples. Your knowledge and the amount of work you done (docu, tutorial...
💬 2010-11-22 Herong: Kim, Yes, you can prompt the user for a path name, open directory with opendir(), loop through each files, use the -s operator t...
Perl Script Conversion Tools
This section describes why and how to convert Perl script files to executable binary files. ActivePerl Dev Kit and Perl2Exe are two popular conversion tools for Windows systems. 2020-02-29, 2453👍, 6💬
💬 2019-07-21 Herong: rrr, Thanks for sharing your Perl script. But I don't see any benefit of removing BOM from a Unicode text file. Without BOM, the...
💬 2019-07-20 rrr: # program to remove a leading UTF-8 BOM from a file # works both STDIN -> STDOUT and on the spot (with filename as argument) if ...
💬 2016-03-28 de: ~ m/^p(\d+)_.*\
💬 2016-01-27 Herong: Ram, can you tell us what is the purpose of your Perl script?
QUERY_STRING - CGI Query String
This section describes what is QUERY_STRING and how to use to receive information from the HTTP request URL. 2019-12-16, 9224👍, 3💬
💬 2019-12-16 jyothirmayee: Hhank u very much
Running Perl Scripts on Windows Systems
This section provides a tutorial example on how to run Perl scripts with ActivePerl on Windows systems. To make a Perl script file executable, you need to set the script file name extension to '.pl'. 2019-06-17, 10409👍, 2💬
💬 2019-06-16 Herong: Kalcifer, yes, there seems to be an problem with Windows 10 on associating default programs for file extensions. Does anyone hav...
💬 2019-06-14 Kalcifer: Something is wrong on Windows 10, Perl script does not recognize command line parameters. Example: D:\>assoc .pl .pl=PerlScript ...
Retrieving Query Parameters and Headers
This section provides a tutorial example on how to retrieve input parameters from query string and request content, and retrieve request headers. 2019-05-21, 1945👍, 1💬
binmode() - Opening Files for Binary Input
This section describes steps on how to open file for binary input using open(), binmode() and read() functions. 2019-05-19, 2066👍, 3💬
💬 2019-05-18 Herong: Anuj, Yes, you can read file without binmode, even if the file is binary. But the input byte stream will be interpreted as encod...
💬 2019-05-15 Anuj Jain: can we read file without binmode if a file is binary
💬 2016-01-13 Bin: The quick brown fox jumps over the lazy dog
XMLin() and XMLout() Methods
This section describes two key methods in the XML::Simple module, XMLin() and XMLout(), to convert XML text string into a hash structure representing the XML structure and to convert the hash back to a string. 2019-03-12, 790👍, 1💬
DBM Database Example - Book Records with Multiple Fields
This section provides a tutorial example of using DBM database files to build book records with multiple fields by joining them into a single string value. 2018-05-31, 289👍, 1💬
💬 2018-05-31 pat: I just wanted to let you know that your examples are very informative and helpful to the small project I am working on. Thank yo...
cgi-lib.pl - The Standard Library for CGI Scripts
This section describes the de facto standard library, cgi-bin.pl, for Perl CGI scripts. It also provides a tutorial on how to download and install cgi-bin.pl 2.18 to the Apache server on a Windows system. 2018-01-20, 941👍, 2💬
💬 2018-01-20 Herong: Nils, Thanks for your comments. I will include them in the next update.
💬 2018-01-09 Nils Kammenhuber: DON'T use cgi-lib.pl! It is horribly outdated, the last version is from 1999, and it is said to have security issues. Instead, u...
Installing Apache HTTP Server 2.2.25 on Windows
This section describes how to install Apache 2.2.25 binary distribution on Windows systems. 2017-11-20, 1547👍, 3💬
💬 2016-06-19 Herong: that was an interesting test.
XML Messages over Socket Connections
This section describes the XML message communication model - where client and server send and receive XML messages over socket communication connections. 2017-07-20, 2869👍, 5💬
💬 2015-11-11 Herong: Thai, you are welcome!
💬 2015-11-10 Thai Khang: Thanks
Open Files in Binary Mode
This chapter provides tutorial examples and notes about opening files in binary mode. Topics include using binmode() to open files in binary mode; Copy.pl - copying binary files; Bin2Hex.pl - converting binary data to hex numbers. 2017-06-26, 563👍, 1💬
Running PerlApp to Convert *.pl to *.exe
This section provides a tutorial example of running PerlApp from ActiveStat to convert a sample Perl script, DirGrep.pl, to Windows executable binary, DirGrep.exe. 2017-01-14, 2564👍, 2💬
💬 2017-01-14 Herong: Monique, Yes, you run the commands listed in the tutorial at the command prompt.
💬 2017-01-12 Monique: Where do you actually run this???? from command prompt?
Scalar Values and List Values
This section describes what is a scalar value, a single numeric value or a string of characters, and what is a list value, a list of scalar values. 2016-10-19, 226👍, 1💬
Bin2Hex.pl - Converting Binary Data to Hex Numbers
This section provides a tutorial example on how to convert binary data file to hex numbers - Bin2Hex.pl. 2016-08-08, 6588👍, 1💬
💬 2016-08-08 HEX: 831BE6B18E7006372069545885A80F786C33 D064904732D39EFBE0EC7019B5D4
Installing ActivePerl v5.8.8 on Windows Systems
This section provides a tutorial example on how to install ActivePerl v5.8.8 on a Windows XP system. 2016-04-02, 3507👍, 1💬
This section provides a tutorial example on how to use SHA1 message digest algorithm in Java. The JD...
The Rat Being born a Rat is nothing to be ashamed of. In China, the Rat is respected and considered ...
Chinese Calendar Wedding Dates: Chinese Wedding Traditions Complete Guide to Chinese Wedding Plannin...
This section describes what is WADL (Web Application Description Language), an XML-based file format...
This section provides some usage examples of PKI (Public Key Infrastructure), like HTTPS (Hypertext ...