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 reply to Re^2: global variables defined in an external file
by choroba
in thread global variables defined in an external file
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |