Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

RE(7): Alpha base-26 to base-10... (golf)

by Tomte (Priest)
on Jul 01, 2003 at 18:17 UTC ( #270586=note: print w/replies, xml ) Need Help??


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

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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://270586]
help
Chatterbox?
[marto]: Discipulus, what did you have in mind?
[marto]: sort of related, have you seen sonic pi
[Discipulus]: choroba less than perl -le ' $==1,(1 x $_)=~/(^)(1|11\1 )*(?{$=++})^/, print $= for 0..10'?? congrats
[Discipulus]: marto i had in mind something for stupid peoples with smart phones; a free app (this is the the non perl part..) and some hardware to sell in big cities
[marto]: use libPD on Android/IOS, route to something listening on the pi :P
[marto]: libpd
[marto]: OSC

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-10-17 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (225 votes). Check out past polls.

    Notices?