in reply to Confused about typeglobs and references

If you're using local, I'm pretty sure the var needs to be previously declared as global (ie, the error is that the script can't localise something that doesn't exist). I don't use local much though...

Put either of these at the beginning of the script:

our @a = (); # or use vars qw(@a);

That should do the trick - unless I'm missing something else from your snipped code...

.02

cLive ;-)

Replies are listed 'Best First'.
Re: Re: Confused about typeglobs and references
by Argel (Prior) on Nov 04, 2002 at 20:15 UTC
    Right you are cLive! Thanks! -- Argel