Carl Jolley <[EMAIL PROTECTED]> wrote:

> ....=\"$artist[$counter][0]\"\;\n";
> 
> It appears that the specific error you are getting is:
> use of an unititialized value in string, your examples
> did not seem to be using the concatenation (.) operator.

As explained under "Use of uninitialized value" in perldiag in 
the documentation, interpolation of variables into strings is 
optimized into concatenation, so when you interpolate 
undefined variables you get that warning.

> Also note you are generating a reference to a string. Don't try
> to escape enclosing quotes with a \. This is what the qq
> function was invented for.

I agree that using qq() would be better, so that the internal 
quotes didn't have to be escaped, but I think you're confused 
about the reference.  The full line is 

   print BLAH "band[$x][1] = \"$artist[$counter][0]\"\;\n";

The equals sign is part of the string, and there's no 
assignment or reference.

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC

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

Reply via email to