CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions:
regex with "}"

 



Kimaro
New User

Oct 28, 2014, 6:07 AM

Post #1 of 4 (21489 views)
regex with "}" Can't Post

I need help Wink

my regex doesn't work. I receive the message:

Use of uninitialized value $xyz in pattern match (m//) at ./new 1.pl line 36

my regex is:

Code
if ($xyz =~ /\}/) {

my other :

Code
if ($xyz =~ m/\\}/is) {

please help me and my hopeless try using regex.
And sorry for my bad english :D


(This post was edited by Laurent_R on Oct 28, 2014, 11:14 AM)


FishMonger
Veteran / Moderator

Oct 28, 2014, 6:14 AM

Post #2 of 4 (21485 views)
Re: [Kimaro] regex with "}" [In reply to] Can't Post

The } in the regex is not the problem.

Here's the problem: Use of uninitialized value $xyz


Laurent_R
Veteran / Moderator

Oct 28, 2014, 11:11 AM

Post #3 of 4 (21477 views)
Re: [Kimaro] regex with "}" [In reply to] Can't Post

The $xyz variable is not defined at this point in the code. But since you did not provide the rest of the code, it will be difficult to help you further.


Laurent_R
Veteran / Moderator

Oct 28, 2014, 11:15 AM

Post #4 of 4 (21475 views)
Re: [Kimaro] regex with "}" [In reply to] Can't Post

Plezase note that I have edited your post to put the code wit-hin CODE tags.

If you provide more of your code, please do likewise.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives