Greetings.
I am afraid this is rapidly becoming less than relevant, however..
-Original Message-
From: Stas Bekman [mailto:[EMAIL PROTECTED]]
[...]
You have to declare variables as globals before using them.
Agreed
Even the imported ones. That's a pure perl issue. Please proceed
Alessandro Forghieri wrote:
This is a bit of a surprise the following, in fact, runs just fine:
--Foo.pm--
package Foo;
use strict;
use warnings;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = ( qw( $foo ) );
our @EXPORT = qw();
our $VERSION = '0.01';
our $foo=1;
1;
Greetings.
Alessandro Forghieri wrote:
[...]
use Bar qw($foo);
if($foo) {
...
Global symbol $foo requires explicit package name at
use vars qw($foo);
use Bar qw($foo);
[...]
Not sure I am following you here. $foo is in the @EXPORT_OK list of module
Bar, which is, in turn,an Exporter. It
Alessandro Forghieri wrote:
Alessandro Forghieri wrote:
[...]
use Bar qw($foo);
if($foo) {
...
Global symbol $foo requires explicit package name at
use vars qw($foo);
use Bar qw($foo);
[...]
Not sure I am following you here. $foo is in the @EXPORT_OK list of module
Bar, which is, in
Alessandro Forghieri wrote:
[...]
use Bar qw($foo);
if($foo) {
...
Global symbol $foo requires explicit package name at
use vars qw($foo);
use Bar qw($foo);
or with 5.6+
our $foo;
use Bar qw($foo);
See: