Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Golf: Embedded In Order

by chipmunk (Parson)
on Apr 27, 2001 at 17:54 UTC ( #76091=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub t_in_s {
    ($t=pop)=~s/./$&.*/g;$_[0]=~$t
    }
    
    t_in_s('abcdefghijklmnopqrstuvwxyz', 'for');
    
  2. or download this
    sub t_in_s {
    ($t=pop)=~s/./\Q$&\E.*/g;$_[0]=~$t
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://76091]
help
Chatterbox?
[Discipulus]: ++erix

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-09-25 13:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?