http://qs321.pair.com?node_id=735138


in reply to Can't use an undefined value as an ARRAY reference

You might also find 'use diagnostics;' useful - put this at the top of your program and it'll give you more explainey error messages.
  • Comment on Re: Can't use an undefined value as an ARRAY reference

Replies are listed 'Best First'.
Re^2: Can't use an undefined value as an ARRAY reference
by Anonymous Monk on Mar 17, 2010 at 06:08 UTC
    Hello, if $dataSet{results} is parsed from a user input file for example, and we would want to give user the flexibility of defining and not defining this array depending on their applications, is there a way I could get around this without getting the error of "undefined value as an ARRAY reference" ? Thanks!