in reply to Re: Arrays of hashes which have arrays
in thread Arrays of hashes which have arrays

I am using warnings .. I only posted the snippets that were causing me grief. I misinterpreted those warnings to mean I was attempting to print a variable with no value.

Thank you very much for your help

  • Comment on Re^2: Arrays of hashes which have arrays

Replies are listed 'Best First'.
Re^3: Arrays of hashes which have arrays
by ikegami (Patriarch) on Jan 26, 2009 at 22:58 UTC

    "Useless use in void context" is not a comment about the operands. It means the result of an operation is being discarded without being used. In this case, the result of the concatenation of the value returned by print and what follows is being discarded.

    The following would also issue the warning

    @a = 4, 5;
    because Perl interprets that as
    ( @a = 4 ), 5;

    The result of the list operator is being discarded. (I'm making the likely assumption that the above is being evaluated in void context.)