Hi Anne, On Sat, 22 Sep 2012 09:45:08 +0200 Anne Wainwright <anothera...@fables.co.za> 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? <> is short for <ARGV> and is documented here: http://perldoc.perl.org/perlvar.html Reading from it: [Q] ARGV The special filehandle that iterates over command-line filenames in @ARGV . Usually written as the null filehandle in the angle operator <> . Note that currently ARGV only has its magical effect within the <> operator; elsewhere it is just a plain filehandle corresponding to the last file opened by <> . In particular, passing \*ARGV as a parameter to a function that expects a filehandle may not cause your function to automatically read the contents of all the files in @ARGV . [/Q] The ARGV file handle is often used by default, also when you use an empty diamond operator (< $filehandle >) which is equivalent to: http://perldoc.perl.org/functions/readline.html So it means you are the 6th line. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/ Sisko: Q: would it be OK if my crew brought along their phasers with them? Q: Of course. They can also bring some photon torpedoes if they wish. None of them will work, but I don’t mind them taking them. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/