Explain USE and REQUIREMENT statements?



Explain USE and REQUIREMENT statements?..

Answer / Sumit Mehrotra

"The 'use' statement in Perl is used to load Perl modules, which can provide additional functionality. The 'require' statement is also used to load modules but it does not initialize the module until the first time it is actually called."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

Give an example of using the -n and -p option.

1 Answers  


What does this symbol mean '->'?

1 Answers  


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

1 Answers  


How to convert strings into an array in perl?

1 Answers  


What rules must be followed by modules in perl.

1 Answers  


how to find a substring in a string without using substr built in functions, and print the substring found

3 Answers   Nokia,


Is perl a case sensitive language?

1 Answers  


Packing and Unpacking. Hi, I want to get output as 0x23400000345.... in the below example How to get? i tried out, but unable to get the answer $r=0x234; $t=0x345; $y=pack('L L',$t,$r); $x1=unpack('L!',pack('P',$y)); printf("\nThe value is $x1"); I didn't get constant output

1 Answers  


What is the use of -w, -t and strict in Perl?

1 Answers  


What is it meants by '$_'?

1 Answers  


What does file test operators do in perl?

1 Answers  


Comment on the scope of variables in perl.

1 Answers  


Categories