Oh yeah.. that's funny. Get this - right as soon as the implicit BEGIN (via the use) is parsed inside the currently-being-parsed BEGIN block it is executed. So you're attempting to use $a in your nested BEGIN block prior to defining it. See?
BEGIN { my $a = "c:/"; BEGIN { require "$a"; import "$a"; } }
Fun Fun Fun in the Fluffy Chair
In reply to Re^4: modify @INC
by diotalevi
in thread modify @INC
by pfm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |