Explain the difference between use and require?
Answer Posted / kush
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.
Require:
1. The method is used for both libraries and modules.
2. The included objects are varified at the run time.
3. Need to give file Extension.
| Is This Answer Correct ? | 38 Yes | 6 No |
Post New Answer View All Answers
how to create a flat file database as shown below s.no name age city phone 0 hema 22 Calcutta 4312542 1 hema 21 Bangalore 2344345 2 ganesh 25 delhi 2445454 3 kartik 45 pune 4312121 4 santosh 25 Hyderabad 2254231 5 kumar 25 mysore 2344567 6 gita 34 mangalore 6532123 7 gita 32 pune 2213456 Q1.print the details of the person who r from bangalore q2.Replace the city name managlore to pune q3.prints no of person having name gita and hema q4.print how many are of age 25.
What is lexical variable in perl?
What is the use of "stderr()"?
What is a chomp() function in perl?
How will you get the count of parameters passed to a perl subroutine?
what are the two ways to get private values inside a subroutine or block?
What is the different between array and hash in perl programming?
what is Polymorphism in Perl?
What is perl programming?
How to find the length of an array in perl?
What is a chop() function in perl?
Explain the internal working of cgi
how to connect cisco switch uisng perl script
What happens to objects lost in "unreachable" memory, such as the object returned by Ob->new() in `{ my $ap; $ap = [ Ob->new(), $ap ]; }' ?
How do I replace every TAB character in a file with a comma?