Browse DevX
Sign up for e-mail newsletters from DevX

Search the Tips
Tip Bank > Web Development > Python And Perl

Python And Perl

17 of 17     Previous     Next
How to Capture Compute Time in Python
by Srinath M S
Language: Web, Expertise: Intermediate - Learn to use the time module and time function to capture compute time in Python.
How to Check if a List is Empty in Python
by Srinath M S
Language: Web, Expertise: Beginner - Learn two methods that enable you to check the status of a list in Python.
Connect to the DB for Multiple .cgi Web Services with PERL
by Cem Aykan
Eliminate the hassle of typing all your DBI information into your Perl .cgi scripts. This function retrieves the information from a .dat file on the server, and parses it for the DBI.
Track Process Runtime for Perl Scripts
by Jaime Bellmyer
Knowing your runtimes helps to prevent inefficient code, and allows you to calculate larger batches. This tip shows you how.
Write to a Perl File Using Flock
by Jaime Bellmyer
Learn how to write to a Perl file using the flock function.
Identifying Memory Leaks in Linux for C++ Programs
by Karthik Kumar Arun Kumar
The mtrace() function logs all memory leaks. Next, the memory allocations and deallocations are logged to a text file pointed to by the environment variable MALLOC_TRACE. Finally, a Perl utility called mtrace parses the text file logged by your program and identifies the memory leaks.
Creating a Python Executable File Using makeExe.py
by Premshree Pillai
This file creates an executable file from a Python file specified by the user and writes the new executable to disk.
Listing Files in a Directory with Perl
by Matt Crinklaw
A Quick-and-dirty Script for "Direct Mode" in Perl
by Atanas Banov
Handling Binary Files in Perl
by Atanas Banov
The qq Function for Long Strings in Perl
by Steve Renaker
If you write CGI programs in Perl, you probably find yourself using a lot of long print statements for outputting HTML. HTML uses a lot of double quotes, so it's better if you don't have to escape ...
Avoid Using Perl's Default Delimiter / in Paths and URLs
by Steve Renaker
Perl's regular expression substitution function is useful for CGI string manipulation, but using the default delimiter / can lead to leaning-toothpick syndrome if you use it for paths or URLs. ...
URL Redirection With Perl
by Steve Renaker
Once your Perl CGI program has run and you're ready to display the results, you have a couple of choices. If the results are dynamic and different for every user, then the custom HTML generation will ...
Create Hyperlinks in Perl Using a Regular Expression
by Steve Renaker
When outputting HTML, it's often handy to be able to turn any URL, such as http://www.whatever.com, into a hyperlink, such as ...
Locking a File With the Perl Flock Function
by Steve Renaker
Many CGI programs, such as guestbook programs, require that only one user at a time be allowed to access a data file. You can lock a file with the Perl flock function (flock stands for file lock). ...
Listing All Environment Variables
by Steve Renaker
Environment variables are useful for gathering data about a client's system settings, but different servers have different environment variables available to them. To find out what environment ...
Sorting a Two-Dimensional Array With <=>
by Steve Renaker
The Perl sort function is useful for alphabetically sorting lists. However, you can't use it on a list of lists, because once a list starts listing other lists, they cease to be lists and become ...
17 of 17     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date