Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with an error message

Status
Not open for further replies.

tsp120

Programmer
May 21, 2003
52
US
I'm trying to print out the contents of an array and I am getting the error message:

In string, @Lcounter now must be written as \@Lcounter at lam_prog line 118, near "@Lcounter"

Does anyone know what this means?
 
It's telling you that you have to "escape" the @ symbol with \ (backslash).

As you know, the @ symbol in PERL signifies an array identifier. If you use the @ symbol in a string (abc@xyz), perl thinks you're trying to do something with array xyz. Your error message would seem to indicate an improper use of the array in a string - something like "@Lcounter" or '@Lcounter' (note the quotation marks). Maybe you could post your code?

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top