Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by Your Mother (Canon)
on Jan 22, 2013 at 16:50 UTC ( #1014729=note: print w/ replies, xml ) Need Help??


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

Maybe there is confusion about how you really want to go about this because the spec as given is ludicrous. You have four digits to work with which means 10,000 numbers available. Assuming only lowercase letters for example (like abc.html)–

perl -le 'print 24**3' 13824

You're already out of room with this most trivial example. Any real file names/paths will certainly not be able to fit in any translation scheme. The information must be *somewhere*. Your quest to save space by disappearing it seems magical. Pretty much everyone here is telling it to you straight.

If there is still a misunderstanding, perhaps you could give a concrete example of input (and its range) and output you expect. If what you want is possible someone will help you.


Comment on Re^7: Using filepath method to identify an .html page
Download Code
Re^8: Using filepath method to identify an .html page
by davido (Archbishop) on Jan 23, 2013 at 00:25 UTC

    The third of Clarke's three laws is at play here:

    Any sufficiently advanced technology is indistinguishable from magic.

    "sufficiently advanced" is really a relative term. To one who understands it, it is not sufficiently advanced to be indistinguishable from magic. But to one who doesn't understand it, the line between reality and magic is obscured.

    Once technology becomes indistinguishable from magic, it becomes impossible to distinguish between what is possible and what is impossible. With magic everything should be possible, right? What we need to do is shed our understanding so that the technology we're discussing appears to us as magic as it does to someone who believes that through the magic of technology everything must be possible. Only then will we be able to come up with solutions based on the boundless nature magic rather than the finite constraints of well-understood technology.


    Dave

      I have always found that bit of Clarke silly. "Sufficiently advanced" is not relative, it's self-fulfilling. "Sufficiently A is B" is always true because it's what the clause means.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-09-01 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (17 votes), past polls