FAQ tagged as:

perl script

Q. I’m new to Linux and Perl. I’ve printed perl man page but it is bit confusing and omits a lot of simple things or details. Can you tell me how do I write a perl script? How do I open perl editor?
A. Larry Wall began work on Perl in 1987 and it is a [...]

{ 4 comments }

Q. How do I find out RAM size / memory size in FreeBSD? How do I display amount of free and used memory in the system?
A. To displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel you need to [...]

{ 11 comments }

Q. How do I use sprintf() function in a perl script under Linux or UNIX?
A. perl printf() function is use to format and print data on screen.
You need to use sprintf to print or store formatted data/string to a variable or to a string.
Also note that Perl does its own sprintf formatting–it [...]

{ 1 comment }

nixCraft FAQ PDF Collection Now Available To All