in reply to setting main package vars w/ RecDescent

Wierd...

Are you sure that shouldn't be

struct: wire {$main::structs{$arg[0]} = $item[1]}
? The @arg[0] and @item[1] look suspect.

I don't understand why your 2nd example doesn't work just fine, though...
--
Mike

Replies are listed 'Best First'.
Re: Re: setting main package vars w/ RecDescent
by Anonymous Monk on Apr 18, 2002 at 18:35 UTC
    Seems I needed to declare the array/variable with:
    use vars qw(%structs);
    first. Not sure what it is really doing, but sure it works!