Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: TMTOWTDI Puzzle: Generating a range of numbers

by petral (Curate)
on Dec 24, 2001 at 21:43 UTC ( #134176=note: print w/ replies, xml ) Need Help??


in reply to TMTOWTDI Puzzle: Generating a range of numbers

Here's some typographical nonsense (from a long week-end):

s|^$|$^|s; s|.|.|g; s|\./\|\.$|"/".y/././.$"|e while/\./; s|/||; s|.$|$/|; print
And only one word before the final print (which can be changed to split to comply literally with "generate a list".

update: OK, here's one with no words that only works with 5.6.1 or later. (and now I really have to quit.)
s|^$|$^.|s; s|.|.|g; s|.|$`=~y/.//.$"|ge; s|..||; s|.$|$/|; print
update too Well, one more, now I really will quit:
s|^$|$^|s; s|.|"$\"$`"=~y/M_A-T_H OUT//.$"|ge; s|.$|$/|s; print


  p


Comment on Re: TMTOWTDI Puzzle: Generating a range of numbers
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (19)
As of 2015-07-02 19:46 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 (45 votes), past polls