- or download this
package module1;
...
@EXPORT_OK = qw($str);
1;
- or download this
#!/usr/bin/perl -w
...
use module1 qw($str);
print $str;
- or download this
Global symbol "$str" requires explicit package name at ./script.pl lin
+e 7.
Execution of ./script.pl aborted due to compilation errors.