1 2 >   Sort: Rank

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.
2020-11-22, 146👍, 4💬

💬 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.

💬 2020-11-07 Rajat: Hello sir. I want to get the cookie from site which is HTTP protected.With the above method not able to get it.Please help. Than...

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, 6037👍, 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...

(More comments ...)

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.
2020-09-01, 1176👍, 2💬

💬 2020-09-01 naim: hello

💬 2015-11-24 Harry: Thank you! Top!!!

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-06-04, 152👍, 4💬

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.
2020-04-20, 8098👍, 15💬

💬 2020-04-20 Daniel Morris: This service is best service for best people

💬 2018-09-07 lijun: duo xie

💬 2018-03-30 ywb: 体验

💬 2018-02-28 黄先生: 多谢

💬 2017-08-18 bill: thanks

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, 1490👍, 6💬

💬 2020-02-29 smith: alert(1)

💬 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?

(More comments ...)

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, 4262👍, 3💬

💬 2019-12-16 jyothirmayee: Hhank u very much

💬 2015-10-26 jimmy: hello

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.
2019-09-15, 28287👍, 15💬

💬 2019-09-15 Herong: Any more information about this Web service?

💬 2019-09-10 previsualizacion: http://200.54.27.12/wsGetPdf/service s/view?wsdl

💬 2019-08-23 kaushal: nice

💬 2019-08-09 Mahesh: perfect

💬 2017-12-18 maria de los angeles: thanks, :)

(More comments ...)

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, 2023👍, 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, 845👍, 1💬

💬 2019-05-21 Willaim: Hello There

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, 1501👍, 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, 155👍, 1💬

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.
2019-02-16, 2198👍, 6💬

💬 2018-10-08 asdf: good

💬 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.

💬 2015-10-21 יאיר: שלום

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, 208👍, 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...

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.
2018-01-25, 7670👍, 19💬

💬 2017-11-16 Ye Hongshaui: Very good

💬 2017-11-02 lxddd: thank you very much!

💬 2017-08-18 zhaogt: verry good!

💬 2017-05-20 qws: Very good

💬 2017-02-14 xiaoluo: i need to download it

(More comments ...)

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, 478👍, 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, 1024👍, 3💬

💬 2016-06-19 Herong: that was an interesting test.

💬 2016-06-17 a: <?php echo 'hello'; ?>

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.
2017-10-24, 20047👍, 15💬

💬 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...

💬 2017-09-20 Herong: >perl hello.prg should work.

💬 2017-09-15 Purushottam: >perl hello.prg in the above line .prg is correct or it is .pl ??

💬 2017-04-03 john honaii.....: heeeeeheeeee

(More comments ...)

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, 1963👍, 5💬

💬 2017-07-20 WOW: WOW

💬 2015-11-11 Herong: Thai, you are welcome!

💬 2015-11-10 Thai Khang: Thanks

💬 2015-11-10 Khang: thanks

💬 2015-10-06 Thai Khang: Thank you so much

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, 411👍, 1💬

💬 2017-06-26 vf: kjnpoi

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, 1391👍, 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, 115👍, 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, 4019👍, 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, 1920👍, 1💬

💬 2016-04-02 rimpi: perl

1 2 >   Sort: Rank