Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Golf: Indici to all sectors of an xD space

by trantor (Chaplain)
on Oct 11, 2001 at 02:47 UTC ( [id://118118]=note: print w/replies, xml ) Need Help??


in reply to Golf: Indici to all sectors of an xD space

35 characters, both warnings and strict compliant:

# 1 2 3 #2345678901234567890123456789012345 [map{eval"[$_],"}glob'{-,}1,'x pop]

I used the approach discussed in Web-Safe Color Chart

-- TMTOWTDI

Replies are listed 'Best First'.
Re (tilly) 2: Golf: Indici to all sectors of an xD space
by tilly (Archbishop) on Oct 11, 2001 at 03:06 UTC
    Really cute. Unportable under 5.005, but portable on 5.6. However one technical note, you can reduce it to 29:
    sub h { # 1 2 #2345678901234567890123456789 [map[eval],glob'{-,}1,'x pop] }
Re: Re: Golf: Indici to all sectors of an xD space
by blakem (Monsignor) on Oct 11, 2001 at 03:12 UTC
    Nice... since I've had a hand passing that glob trick around perhaps I should attempt to shave a few chars off this tricky entry....

    30 chars... passes warnings and strict: (though not necessarily taint compliant)

    # 1 2 3 #23456789012345678901234567890 [map{[eval]}glob'{-,}1,'x pop]

    Doh! tilly was quicker, and beat me by a char (of course, I originally learned the glob trick from him, so perhaps thats how it should be...)

    -Blake

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found