~ubuntu-branches/ubuntu/edgy/libapache2-mod-perl2/edgy

« back to all changes in this revision

Viewing changes to ModPerl-Registry/t/cgi-bin/perlrun_decl.pm

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2004-08-19 06:23:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040819062348-jxl4koqbtvgm8v2t
Tags: 1.99.14-4
Remove the LFS CFLAGS, and build-dep against apache2-*-dev (>= 2.0.50-10)
as we're backing out of the apache2/apr ABI transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package perlrun_decl;
 
2
 
 
3
use warnings;
 
4
use strict;
 
5
 
 
6
use base qw(Exporter);
 
7
our @EXPORT = qw(decl_proto);
 
8
 
 
9
# this BEGIN block is called only once, since this module doesn't get
 
10
# removed from %INC after it was loaded
 
11
BEGIN {
 
12
    # use an external package which will persist across requests
 
13
    $MyData::blocks{perlrun_decl}++;
 
14
}
 
15
 
 
16
sub decl_proto ($;$) { shift }
 
17
 
 
18
# this END block won't be executed until the server shutdown
 
19
END {
 
20
    $MyData::blocks{perlrun_decl}--;
 
21
}
 
22
 
 
23
1;