Write brief answers to the following questions.1.
What are the different methods CGI uses for returning HTTP ? 3
CGI.pm has two methods for returning HTTP headers: header and redirect.They correspond to the two ways you can return data from CGI scripts: you can return a document,or you can redirect to another document.
Which are the file locks available in peri ? 3
allows more than one program (or other process) to access the file at the same time.A program should use a shared lock when reading from a file.An
allows only one program or process to access the file while the lock is held. Aprogram should use an exclusive lock when writing to a file.File locking is accomplished in Perl using the Fcntl module, EG: use Fcntl qw(:flock);
3. How do you set the environmental variables manually? 34. What are the common errors in programming with Perl? 3
Problem Typical Error Message
Application permissions 403 ForbiddenThe pound-bang line 403 ForbiddenLine endings 500 Internal Server Error
500 Internal Server Error
5. What are the advantages of XML? 3The real power of XML comes from the fact that with XML, not only can you define your ownset of tags, but the rules specified by those tags need not be limited to formatting rules. XMLallows you to define all sorts of tags with all sorts of rules, such as tags representing businessrules or tags representing data description or data relationships.Some of the benefits are:
With XML, the GUI is extracted. Thus, changes to display do not require futzingwith the data. Instead, a separate style sheet will specify a table display or a listdisplay.