Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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;

Comment on Re^6: how to extract iframes from text
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031494]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2016-02-10 06:16 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (332 votes), past polls