in reply to Re: global variables defined in an external file
in thread global variables defined in an external file
It is the ohter way round:
Def.pm:
The script:package Def; use warnings; use strict; use Exporter 'import'; our @EXPORT = qw/$sc @ar %ha/; our $sc = 'All'; our @ar = qw/the variables/; our %ha = (exported => ' succesfully.'); __PACKAGE__
#!/usr/bin/perl use warnings; use strict; use Def; print "$sc @ar ", %ha;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
|
---|
In Section
Seekers of Perl Wisdom