What you posted only has 9 lines not 11 ... anyway, basically $dom->at('#u') is failing ... as expected, "u" is an odd name for an id, its too short, and it isn't "I'm_having_trouble...."
You can find using ".u" to match by class and "p" to match by paragraph
Comment on Re: Can't call method "text" on an undefined value at usingmojo.pl line 11.