File: lexical2.pm

package info (click to toggle)
libdevel-pragma-perl 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 364 kB
  • sloc: perl: 449; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package lexical2;

use strict;
use warnings;

our $test;

# Devel::Pragma is lexically scoped and shouldn't fix modules "downstream"
# 1 for success if the key has leaked
# 0 for failure if it hasn't
BEGIN { $test = $^H{'Devel::Pragma::Leak'} ? 1 : 0 }

sub test() { $test }

1;