in reply to glob'ing and variable setting
Update: The following works for me. Note, though, that exporting variables is not recommended:
Local.pm:
package Local; use warnings; use strict; use Exporter 'import'; our @EXPORT_OK = qw( $VAR ); our $VAR = 12; __PACKAGE__
script.pl:
#!/usr/bin/perl use warnings; use strict; use Local qw( $VAR ); print "$VAR\n";
|
|---|