No. How on earth is Perl expected to go from "Foo::Test" which only specifies a package to finding your $URL var within that package. There is simply not enough infomation. Why should it select $URL? Why not %ENV @ISA $DWIM ....? Perl is good but it is not psychic....but more seriously.....
Perhaps you might like to explain what it is you are trying to do (besides use symbolic references which is almost certainly a bad idea and generally unnecessary). There are probably a lot of better ways to do what you want than what you seem to be planning. Anyway this is how to do it (if you must).....
package Foo::Test;
$URL = "http://dont.go.here.info/perl/symbolic/references/just_say_no.
+htm";
$x = "Foo::Test";
print ${"${x}::URL"};
Also $x must be a GLOBAL for you to be able to access it outside the package. You can't get at a package lexical* (delared with my) from outside the package it is declared in. Globals are another thing best avoided, although there are of course exceptions to every rule.
* Technically you can get at them but certainly not easily.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|