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

Re: split function against a HTML code

by erroneousBollock (Curate)
on Nov 26, 2007 at 06:21 UTC ( #652923=note: print w/ replies, xml ) Need Help??


in reply to split function against a HTML code

I'll put aside the fact that you're parsing HTML by hand. (please use something like HTML::TreeBuilder.

As you don't post your code I can't tell whether you're successfully writing/reading the file. (please check the return values of open/close.)

Also you don't actually state what's not happening.

If you're get two different results from two instances of the same data (where one is inline and the other comes from a file), they're not the same :-).

Look at:

  • do you really have what you think in your variables? (use Data::Dumper)
  • are you using reasonable encodings? (utf8?)

-David


Comment on Re: split function against a HTML code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-07-28 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls