File: lexical1.pm

package info (click to toggle)
libdevel-pragma-perl 0.54-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 448 kB
  • sloc: perl: 747; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 388 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package lexical1;

use strict;
use warnings;

# try to contaminate lexical2
# this should succeed (unless #33311 has been applied, in which case the test is skipped)
# because Devel::Pragma is lexically-scoped, and doesn't leak its
# fix beyond the calling scope (leak.t)

BEGIN {
    $^H |= 0x20000;
    $^H{'Devel::Pragma::Leak'} = 1
}

use lexical2;

sub test { lexical2::test() }

1;