in reply to Mojo Dom method "text" return undefined

> can't call method "text" on an undefined value error

So?

my $c7 = $dom->at ('[class="MTLgp 654"]'); my $r7 = $c7->text if defined $c7;

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Mojo Dom method "text" return undefined
by Anonymous Monk on Aug 31, 2021 at 03:56 UTC

    Such a simple and elegant solution. I often over think it and over program. A sincere Thank You for your kindness And assistance from this novice programmer. Sincerely, Anthony