On 22/09/2012 08:45, Anne Wainwright wrote:
Hi,

this is the output.

Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl 
line 89, <> line 1.
Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl 
line 89, <> line 4.
Use of uninitialized value $9 in concatenation (.) or string at pg_delim2htm_01.pl 
line 89, <> line 6.

and so on

What do the <> with the 'lines' to the right mean?

(I do seem to have a problem on line 89 which is a regex with the /x
modifier)

Hello Anne

The error means that you have used $9 in a string, either

    "the ninth capture is $9"

or the equivalent

    "the ninth capture is " . $9

but $9 has no value. It would be set by a successful regex that has nine
or more captures, so either a regex hasn't matched or the capture is in
a branch of the regex that hasb't matched. Or you've counted your
captures wrongly etc.

The

    ... at pg_delim2htm_01.pl line 89, <> line 4.

means perl was executing line 89 of the pg_delim2htm_01.pl program,
having read 4 lines from the input file using <>

HTH,

Rob

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to