jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
dear monks,
Apologies if this has been discussed already
i m possible
As you can see in the above 2 examples The CGI is used in function-oriented style and object-oriented style. But I coult not find any document which explains about the function oriented and object oriented way of using Perl modules. If any one can give me a brief explanation about that, would be a great help# Function oriented use CGI qw(:standard); print header; print start_html("Hello World"); # Object Oriented use CGI; # don't need qw(:standard) $cgi = CGI->new; # ($cgi is now the object) print $cgi->header; # function call: $obj->function print $cgi->start_html("Hello World");
Apologies if this has been discussed already
i m possible
|
---|
Back to
Seekers of Perl Wisdom