Feb 27, 2004 10:20
20 yrs ago
English term
named request()
English
Tech/Engineering
IT (Information Technology)
Programming in Perl
In the case of the Apache class, the constructor is named request( ), which returns a reference to the current Apache request object. This plugin would be used like this:
[% USE r = Apache %]
[% USE r = Apache %]
Responses
4 +2 | named 'request()' |
pablosan
![]() |
3 | the construct is called request() |
Alaa Zeineldine
![]() |
Responses
+2
11 mins
Selected
named 'request()'
The name given to the constructor is 'request()'
4 KudoZ points awarded for this answer.
Comment: "Thank you!"
5 hrs
the construct is called request()
In the answer to your new() question I briefly explained that each class needs to have a constructor method. The name of the constructor is usually similar to the name of the class that contains it. I don't know whether your manual says that the Apache class is called "Apache" or "request", but it seems that its constructor is called request(). My guess is that the phrase should say "In the case of the Apache request class, the constructor is named request()". This would be consistent with the rest of the text.
Something went wrong...