Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: what it matches m##?

by neilwatson (Priest)
on Feb 26, 2016 at 18:07 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1156250]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found