Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: meta tag extraction with TokeParser

by Anonymous Monk
on Mar 20, 2006 at 21:44 UTC ( [id://538056]=note: print w/replies, xml ) Need Help??


in reply to Re: meta tag extraction with TokeParser
in thread meta tag extraction with TokeParser

I tried adding the following but it didn't change
if ($token->[2] ne '') { $meta{$token->[2]{name}} = $token->[2]{content}; }

Replies are listed 'Best First'.
Re^3: meta tag extraction with TokeParser
by saintmike (Vicar) on Mar 20, 2006 at 21:47 UTC
    Again, you're not checking if it's defined. Use this instead:
    if( defined $token->[2] ) { ... }
      After posting, I actually tried that instead and that, too, still produces the same results.
        Furthermore, if I comment out $meta{$token->[2]{name}} = $token->[2]{content}; the code runs throught without errors so it's definitely on this line.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2025-06-18 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.