Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and this file test.plpackage common_things; use 5.008008; use strict; use warnings; require Exporter; our @ISA = qw(Exporter); my @EXTHDS = ( "/media/disk", "/media/disk-1", "/media/disk-2", "/media/disk-3", "/media/disk-4", "/media/disk-5" ); our %EXPORT_TAGS = ( 'all' => [ qw( @EXTHDS ) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); our @EXPORT = qw( @EXTHDS ); our $VERSION = '0.01'; 1;
But when I run test.pl I get no output at all! What gives?#!/usr/bin/perl -w use strict; use lib('.'); use common_things ':all'; use Data::Dumper; print Dumper(@EXTHDS);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I access an array in a Module?
by pjf (Curate) on Sep 13, 2008 at 08:51 UTC | |
|
Re: How do I access an array in a Module?
by chromatic (Archbishop) on Sep 13, 2008 at 05:29 UTC | |
|
Re: How do I access an array in a Module?
by Fletch (Bishop) on Sep 13, 2008 at 13:07 UTC | |
|
Re: How do I access an array in a Module?
by Anonymous Monk on Sep 13, 2008 at 05:25 UTC | |
by JadeNB (Chaplain) on Sep 13, 2008 at 21:22 UTC |