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

Re: Meaning of error mesage of regexp.

by neilwatson (Priest)
on Sep 30, 2015 at 13:45 UTC ( #1143423=note: print w/replies, xml ) Need Help??


in reply to Meaning of error mesage of regexp.

Please show the lines of code. But, I guess that you are using the match variable from a regex that never matched, thus $1 is undefined.

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re^2: Meaning of error mesage of regexp.
by nikolay (Beadle) on Oct 01, 2015 at 11:53 UTC
    It is true. I have a lot of data (pairs: what to change w/ what). And in example i missed () to organize it to $1. -- All this i know, what here i do not know is the index used by PERL. -- As my data is somewhat big, i would like to use the error message i get -- to easily find the place in the data, that does not have in example () but has in exchange $1. So, from which is it counted?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2019-08-17 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (134 votes). Check out past polls.

    Notices?