what is the main function of fork() in cgi programming?
Answer / Sandeep Anannd
The main function of fork() in CGI programming is to create a new process (child process) that is an exact copy of the parent process (the original script). This is used for parallel processing, where the child process performs some tasks while the parent process continues with others.
| Is This Answer Correct ? | 0 Yes | 0 No |
Write an expression or perl script to identify the entered ip address is valid or not?
What does the’$_’ symbol mean?
package MYCALC; use Exporter; our @EXPORT = (); our @ISA = qw(Exporter); our @EXPORT_OK = qw(addition multi); our %EXPORT_TAGS = (DEFAULT => [qw(&addition)],Both => [qw(&addition & +multi)]); sub addition { return $_[0] + $_[1]; } sub multi { return $_[0] * $_[1]; } 1; Program: use strict; use warnings; my @list = qw (2 2); use Module qw(:DEFAULT); print addition(@list),"\n"; Above coding is my module MYCALC and the program which using this module, I have not exported any function using @EXPORT, but I have used the DEFAULT in %EXPORT_TAGS with the function addition, when I call this function from the main it says the error as,
Mention how many ways you can express string in Perl?
Which has highest precedence in between list and terms? Explain?
how to find a substring in a string without using substr built in functions, and print the substring found
Explain lists in perl?
How to deleting an existing file in perl programming?
Which functions in perl allows you to include a module file.
I have one question regarding to eval function. I know eval function is use for error checking but I am not able to understand below line. eval \'exec perl -S $0 ${1+\"$@\"}\' if 0; $0 for script name $@ set if error occur
Explain the various characteristics of perl.
What is caller function in perl?