Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^6: how to extract iframes from text

by moritz (Cardinal)
on May 01, 2013 at 04:57 UTC ( #1031494=note: print w/replies, xml ) Need Help??


in reply to Re^5: how to extract iframes from text
in thread how to extract iframes from text

Mojo::DOM->find returns a Mojo::Collection object, which is a blessed array reference. So you have have to dereference it to get an array:

my $iframes = Mojo::DOM->new($string)->find('iframe'); my @iframes = @$iframes;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031494]
help
Chatterbox?
[Lady_Aleena]: So I guess I'll go argue with File::Find and grep.
[Your Mother]: I would probably use Path::Tiny instead for it's slurp and such.
[Your Mother]: s/it's/its/
[Lady_Aleena]: Your Mother, how would that work? I'm having a hard time understanding the pod.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-05-23 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?