in reply to What useless about that?

I don't think these errors are caused by this assignment. It sounds like you missed a semicolon or a quote or something a little before this line. We'd need to see more code to be sure though.

The assignment does look flawed on its own though: you're assigning a list to a scalar, and that won't do what you expect. I'm guessing you meant to assign a hashref instead of a list. Replace the outer braces with curlies, and this bit should work.

Update: rats, thrown off by that "isa" error! The "useless" errors _are_ caused by the assignment to the scalar.

Replies are listed 'Best First'.
Re: What useless about that?
by jonadab (Parson) on Nov 10, 2006 at 22:46 UTC
    The "useless" errors _are_ caused by the assignment to the scalar.

    Indirectly. Directly, they are caused by the use of rvalues on the lefthand side of the comma operator. (However, the scalar context supplied by the assignment is driving the choice of comma operator to the one that supplies void context on the left, so that _is_ related.)


    Sanity? Oh, yeah, I've got all kinds of sanity. In fact, I've developed whole new kinds of sanity. You can just call me "Mister Sanity". Why, I've got so much sanity it's driving me crazy.