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

Re: Previous Line Matching Issues

by InfiniteSilence (Curate)
on May 21, 2014 at 00:13 UTC ( [id://1086886]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e '@stack = (); sub notify { return qq~!!!!@_[0]!!!~}; for(qw~+ 
    +- + - + - + + - +~) {push @stack, $_; (@stack[-2] ne $_  )? print 0 :
    + print notify(1)   };'
    
  2. or download this
     perl -e '@stack = (); sub notify { return qq~!!!!@_[0]!!!~}; for(qw~+
    + - + - + - + + - +~) {push @stack, $_; (@stack[-2] ne $_  )? print 0 
    +: print notify(1); if (@stack >= 3){shift @stack}   };  use Data::Dum
    +per; print Dumper \@stack;'
    
  3. or download this
    0000000!!!!1!!!00$VAR1 = [
              '-',
              '+'
            ];
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-24 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found