Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: what it matches m##?

by neilwatson (Priest)
on Feb 26, 2016 at 18:07 UTC ( #1156250=note: print w/replies, xml ) Need Help??


in reply to what it matches m##?

Sometimes re debug can help:

#!/usr/bin/perl use strict; use warnings; use re 'debug'; m#/([^/]*)$#; neil@neptune ~/src/perltest $ ./redebug.pl Compiling REx "/([^/]*)$" Final program: 1: EXACT </> (3) 3: OPEN1 (5) 5: STAR (17) 6: ANYOF[^/][{above_bitmap_all}] (0) 17: CLOSE1 (19) 19: SEOL (20) 20: END (0) anchored "/" at 0 floating ""$ at 1..9223372036854775807 (checking anc +hored) minlen 1 Use of uninitialized value $_ in pattern match (m//) at ./redebug.pl l +ine 7. Freeing REx: "/([^/]*)$"

Neil Watson
watson-wilson.ca

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2019-04-24 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (122 votes). Check out past polls.

    Notices?