Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Golf: Embedded In Order

by petral (Curate)
on May 26, 2001 at 01:41 UTC ( #83439=note: print w/replies, xml ) Need Help??


in reply to Re: Golf: Embedded In Order
in thread Golf: Embedded In Order

But you don't need the $t! 27 chars:
seq{shift=~join".*",split//,pop}
Or 25 using /./g:
seq{shift=~join".*",pop=~/./g}
Or 33 with pathological protection:
seq{shift=~join"\E.*\Q","",pop=~/./gs}
  p

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83439]
help
Chatterbox?
[Corion]: Hurr - use lib glob '/opt/perl/foo*'; - I'm not really sure if that is sane ;-D
[choroba]: Yeah, let's ban dot in INC, but add glob to it!
[Corion]: choroba: Well, at least the above is user-defined, not implicitly by Perl ;)
LanX globalization is evil! Lets Perlxit!

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-01-19 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.