Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Two-dimensional match/regex? (2)

by Eily (Monsignor)
on Nov 29, 2014 at 01:42 UTC ( [id://1108686]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v5.14;
    my $pattern = qr/#.{10}#.{13}#\./ms;
    $_ = <<STRING;
    ...
    14
    19
    25
    
  2. or download this
    use v5.14;
    
    my $length = 20; # Must be higher than the length of the longest line
    ...
    ..#...#..#.##
    .......#.#
    ...........
    
  3. or download this
    1, 2
    1, 7
    2, 1
    

Log In?
Username:
Password:

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

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

    No recent polls found