in reply to hashes of arrays in another name space

A lexical variable (declared with "my") is not in a package, and is thus visible only lexically (hence the name) where it is declared.

You'll have to rethink whether you want a package variable instead of a lexical variable.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: hashes of arrays in another name space

Replies are listed 'Best First'.
Re: Re: hashes of arrays in another name space
by Anonymous Monk on Jan 11, 2001 at 21:13 UTC
    Thanks merlyn. I was actually reading your Coping with Scope, but it hadn't clicked yet. I think I'll try as moo has suggested. -jim