hi amit --  
 
In a message dated 4/5/2006 12:31:43 A.M. Eastern Standard Time, [EMAIL PROTECTED] writes:
 
> Hi ,
> I was just tryin the document and word matrix...but i dont know its alwasy
> givin me an error as :

> Quantifier follows nothing before HERE mark in regex
>   m/+ << HERE /-/ at C:\perl\bin\test\NEW_TE~2.PL line 92, <FL> line 1.
the quantifier in question is the  ``+''  at the very beginning of the regex.  
this is a regex metacharacter meaning ``one or more of the preceding pattern element''.  
because it is at the very beginning of the regex, there is nothing before it for there to be
one or more of.  
 
if you want to match a literal ``+'' (plus sign), precede it with a backslash:  
   m(\+ - \* /)
(note that ``*'' is also a quantifier metacharacter.)  
 
hth -- bill walters  
 
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to