Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Re: Alpha base-26 to base-10... (golf)

by John M. Dlugosz (Monsignor)
on Jul 01, 2003 at 15:36 UTC ( [id://270513]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Alpha base-26 to base-10... (golf)
in thread Alpha base-26 to base-10...

what?

Care to explain that?

  • Comment on Re: Re: Re: Re: Alpha base-26 to base-10... (golf)

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Alpha base-26 to base-10... (golf)
by Tomte (Priest) on Jul 01, 2003 at 16:10 UTC

    To get it, try this:

    regards,
    tomte


    Hlade's Law:

    If you have a difficult task, give it to a lazy person --
    they will find an easier way to do it.

      Ah, that's lc the lower-case function, not 1c the hex representation of 28.

      But I still don't understand why you can have the following pop without a delimiter after the assignment statement. I think the purpose of the pop is to subtract one from the result.

        I may be mistaken, but I read it the way, that the pop delivers the scalar parameter for lc, (replace it with shift, the result is the same).

        the basic is that you get a list of all values between a and the parameter, evaluated in scalar-context (I had this wrong at first :-), you get the length of the list, which is of course the decimal representation.

        regards,
        tomte


        Hlade's Law:

        If you have a difficult task, give it to a lazy person --
        they will find an easier way to do it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-19 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found