in reply to Re: Out of memory
in thread Out of memory

Thank you for your help! I inherited this program, and simply attempted to modify a miniscule portion to achieve my goal. Hence, the the GLOBAL package you mentioned is foreign to me. Sounds like a utility package incorporated by the user when needed. Guess the big question is "do I need it in this instance?" Sorry for the question.

Replies are listed 'Best First'.
Re^3: Out of memory
by RonW (Parson) on Jan 15, 2015 at 23:58 UTC

    Hello

    When Athanasius talked about "package global", he was not referring to a package called "global", but was referring to variables that are global to the current package, which in your case, is probably "main".

    Lexical variables, which are declared with my are only available to the end of enclosing scope. Examples:

    { my $i; { my $k; ...; # both $i and $k are available here } ...; # only $i is available here for my $n (0 .. 9) { ...; # $i and $m are available here } ...; # only $i is available here }