What is the difference between having a parenthesis after
module name and without parenthsis after module name??
i.e Package::Module();
and
Package::Module;

Answer Posted / ankur mundhada

Package::Module(); This will throw as error,

I think,the question should be as: What is the difference
between,
Package::MyModule qw(); # FIRST
and
Package::MyModule; # SECOND

# FIRST :- This will not import any subroutine from MyModule.
# SECOND :- This will import all the subroutine from the
MyModule.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain lists and ivalue?

635


What is the difference between perl list and perl array?

554


What is perl scripting?

589


How can we create perl programs in unix, windows nt, macintosh and os/2 ?

564


What $! In perl?

604






Why to use perl scripting?

583


Explain 'grep' function.

639


Explain lexical variables.

599


Write a program to decode the data in the form using cgi programming

616


Why should I use the -w argument with my Perl programs?

646


What is confess function in perl?

618


How do I do fill_in_the_blank for each file in a directory?

622


What is it meants by '$_'?

606


What is stdin in perl?

615


List the files in current directory sorted by size ?

576