Use the pragma strict tells the compiler to generate three types of errors
- An error for any variables used before it was declared
- An error if your code uses symbolic references
- An error if your code uses bare words
Use the pragma strict tells the compiler to generate three types of errors
Perl is very forgiving of strange and sometimes wrong code, which can mean hours spent searching for bugs and weird results.
Turning on warnings helps uncover common mistakes and strange places and save a lot of debugging time in the long run.
There are various ways of turning on Perl warnings:
One of the most basic uses for an array is as stack
push | pop ==> LIFO
shift | unshift ==> FIFO
Use :
1. The method is used only for the modules(only to include .pm type file)
2. The included objects are varified at the time of compilation.
3. No Need to give file extension.
Use: only for modules, included objects are verified at the time of compilation
Require:
1. The method is used for both libraries and modules.
2. The included objects are verified at the run time.
3. Need to give file Extension.
Require : both library and modules, at the time run time
perldoc -f split
perldoc -f sort
perldoc -m CGI
perldoc -m DBI