in reply to Re^2: Perl DBI fetchall_arrayref - puzzling behaviour
in thread Perl DBI fetchall_arrayref - puzzling behaviour

Think in terms of sets. A set is, mathematically, a bunch of unique items. So, when you union two sets, you take all the unique items that appear in either set. '2' already appeared, so it won't be added again the second time its seen. (It's not exactly like that, but that's the basic idea.)

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

  • Comment on Re^3: Perl DBI fetchall_arrayref - puzzling behaviour

Replies are listed 'Best First'.
Re^4: Perl DBI fetchall_arrayref - puzzling behaviour
by kiat (Vicar) on Jul 16, 2004 at 13:33 UTC
    Thanks, dragonchild!

    I found the MySQL faq which explains the difference. But yours added a different dimension to it which makes it clearer :)