sure, but they need to be package variables declared with our
The cleanest way is to define an own package "File1".
Then you can either export them or reference them via $File1::var1
If you rally want both files to be in the same package ("main" is default), then you won't need to fully qualify them by a leading package name.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^3: accessing values
by LanX
in thread accessing values
by frank1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |