Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Flip-flop won't DWIM

by ikegami (Patriarch)
on May 21, 2009 at 16:52 UTC ( #765503=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -lwe'$true=1; print for grep $true../D/, qw(A B C D E F)'
    
  2. or download this
    perl -lwe'my @a=qw(A B C D E F); print for grep ($_==1) .. ($a[$_]=~/D
    +/), 0..$#a'
    
  3. or download this
    perl -lwe'for (qw( A B C D E F )) { print; last if /D/ }'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2023-09-24 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?