The stupid question is the question not asked | |
PerlMonks |
How to print a Mojo::Collection Arrayby Anonymous Monk |
on Dec 13, 2022 at 17:19 UTC ( [id://11148833]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hello Monks, I'm using Mojo to parse html and am trying to print the array that I have grabbed and I am getting the following when I print $r2: r2 = Mojo:Collection=ARRAY (0x7fa51ac83968). How can I print the content of the array? This is the code I used to grab the html that I wanted. $r2 = $dom2->find('[class="fuLhoc ZWArf"]' ) ->map (sub{$_->all_text});Thanks in advance for any assistance that you can provide
Back to
Seekers of Perl Wisdom
|
|