Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 wandering the Monastery: (3)
As of 2018-12-16 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (70 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!