in reply to Catch references to undefined variables in other modules?
I get the following warning messages:#!/usr/bin/env perl use warnings; use strict; package a; our $x = 1; package main; print "a::x = ", $a::x, "\n"; # Fine print "a::z = ", $a::z, "\n"; # want to raise error here
Is this what you are looking for?Name "a::z" used only once: possible typo at ./647879.pl line 13. a::x = 1 Use of uninitialized value in print at ./647879.pl line 13. a::z =
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Catch references to undefined variables in other modules?
by pc88mxer (Vicar) on Oct 29, 2007 at 17:22 UTC |