Just my guess: you'll probably need to replace all @ with \@ in the
regexp...

Sem mais assunto de momento,
  Fernando Madruga
  ASC:DSI



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Walter Usyk
Sent: segunda-feira, 3 de Junho de 2002 19:01
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Problems with reg expression


I'm having a problem with a regular expression and I hope that someone
can help me out with.

I have the following:

my $envLU
="/vobs/spifftest/.@@/HDX.LU/lineups/.@@/HDX.LU/hdx.lu@@/main/LATEST";
$envLU   =~ s/^(.*\/)([^\/]+@@[^@@]+)$/$2/;

What it is suppose to return is the string starting after the "/? before
the last @@. That is "hdx.lu@@/main/LATEST"

It does do this but I get errors below.

When the reg expression get executed I start receiving the following
errors and I do not know why.

Bareword found where operator expected at (eval 740) line 6, near
"/vobs/spifftest"
        (Missing operator before pifftest?)
Bareword found where operator expected at (eval 741) line 6, near
"/vobs/spifftest"
        (Missing operator before pifftest?)
Bareword found where operator expected at (eval 743) line 6, near
"/vobs/spifftest"
        (Missing operator before pifftest?)
Bareword found where operator expected at (eval 744) line 6, near
"/vobs/spifftest"
        (Missing operator before pifftest?)
Bareword found where operator expected at (eval 745) line 6, near
"/vobs/spifftest"
        (Missing operator before pifftest?)

And they just keep going on until I kill the application.

Can any one tell me what the problem is?

--
Walter Usyk - Tools Developer
Software Development Environment Tools (1P67)
email: [EMAIL PROTECTED]
ESN: 398-4603
Tel: (613) 768-4603


_______________________________________________
Perl-Win32-Users mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to