libapa...terRec(3pm)
π NAME π
Apache2::FilterRec β it's the Perl API for poking at the Apache filter record, bestie β¨
π Synopsis π
use Apache2::Filter ();
use Apache2::FilterRec ();
my $frec = $filter->frec;
print "filter name is:", $frec->name;
πΈ Description πΈ
So Apache2::FilterRec literally hands you a lil doorway into the filter record structure. That's the whole vibe. π¦
You don't make one yourself β you get the Apache2::FilterRec object by calling frec(), like this:
$frec = $filter->frec;
β¨ API β¨
Apache2::FilterRec gives you these functions and/or methods, okurrr π
π "name" π
The registered name for this filter. Like, its government name. πͺͺ
$name = $frec->name();
- obj:
$frec(Apache2::FilterRec object) - ret:
$name(string) - since:
2.0.00
mod_perl filters have four names, no more no less:
modperl_request_output
modperl_request_input
modperl_connection_output
modperl_connection_input
And the tea is: you can see the names of the non-mod_perl filters too π. Just call $filter->next->frec->name and boom, you've got the name of the next filter in the chain. Slay.
Example:
Let's print the name of the current filter and the filter that follows it, because we're thorough like that πββοΈ
use Apache2::Filter ();
use Apache2::FilterRec ();
for my $frec ($filter->frec, $filter->next->frec) {
print "Name: ", $frec->name;
}
π See Also π
mod_perl 2.0 documentation. Go read it, it's giving β¨ required reading β¨.
Β©οΈ Copyright Β©οΈ
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
π«Ά Authors π«Ά
The mod_perl development team and numerous contributors. Iconic behavior, honestly. π
okay that's the whole page bestie, you ate it up π β this was libapa...terRec(3pm) from the User Contributed Perl Documentation, generated by perl v5.42.3 on 2026-08-20. mwah π
π¦ where this page comes from
- ubuntu stonking: libapache2-mod-perl2 2.0.13-2build3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms