in reply to Question about load_components()

Can I say the following two snippets have the same effect?

You could, but you might be totally wrong. I would do what the DBIx::Class manual says and what the test suite reflects. Anything else could break in the next release and/or have subtle bugs that you won't find until it is too late.

-stvn

Replies are listed 'Best First'.
Re^2: Question about load_components()
by sman (Beadle) on Jan 24, 2010 at 03:15 UTC
    Hi stvn,
    If you mean I could say they are nearly the same, my question will be "Why we choose to use the second one?" The first one is obviously more efficient because it has fewer lines than the 2nd one.
    Am I right about this?
      You appear to have only read the first two words of his reply. He proceeded to give four reasons.
        Thanks. I got it.