Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Using filepath method to identify an .html page

by Nik
on Jan 22, 2013 at 15:48 UTC ( #1014703=note: print w/replies, xml ) Need Help??


in reply to Re^3: Using filepath method to identify an .html page
in thread Using filepath method to identify an .html page

Integers need to be created on the fly when an html file is being requested.
I just tried:
pin = int( htmlpage.encode("hex"), 16 )
but that also fails.

The number needs to be a 4-digit integer only, if its to be stored in the database table correctly. So hex encoding is not usefull here.

Replies are listed 'Best First'.
Re^5: Using filepath method to identify an .html page
by Corion (Pope) on Jan 22, 2013 at 15:52 UTC

    I did not mention a "hex encoding" anywhere in my reply. I suggest you actually read my reply, and use a database, or a "key value store", and build a map of words to numbers.

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2021-08-05 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (44 votes). Check out past polls.

    Notices?