Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: N-Queens problem with a regex (again)

by brx (Pilgrim)
on Aug 03, 2007 at 12:15 UTC ( [id://630493]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    our @results;
    
    ...
       (?{ push @results, ... })
       (?!)  # Backtrack to find next result.
    /x;
    
  2. or download this
    "abcde"=~/.*?(.)(?{print $1,"\n"})[0]/;   #produce : abcde
    "abcde"=~/.*?(.)(?{print $1,"\n"})0/;     #nothing
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-25 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found