1) my @line declares the array @line for the rest of the local block (ie for the next line). It declares a new, and empty, array each time round the while loop.
2) /=*([^=]+)/ a) =* zero or more equals signs [ Perhaps this should be =+ , that is, one or more ... ] b) [^=]+ one or more characters which are NOT equals signs c) ( ... ) extract the one or more characters which are NOT equals signs into the variable $1 d) ... which I then use as a filename in open FOO, ">$1" - Roger - ----- Original Message ----- From: "Richard S. Crawford" <[EMAIL PROTECTED]> To: "Roger C Haslock" <[EMAIL PROTECTED]> Sent: Wednesday, January 02, 2002 3:15 PM Subject: Re: Extracting Titles from a bunch of HTML files Thanks. I figured out the regular expression that I needed. I keep forgetting about the power of $1. ;-) At 07:06 AM 1/2/2002, you wrote: >The cheapest way, by far, is the unix command > >grep -i title * # -i == ignore case > >It is not reliable, as it will miss <title>\n ..., but it's a start. > > > >----- Original Message ----- >From: "Richard S. Crawford" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, January 02, 2002 6:17 AM >Subject: Extracting Titles from a bunch of HTML files > > >I have a directory containing over 250 HTML files. What is the best way to >extract the title (between the <TITLE> and </TITLE> tags) of each file >without having to open the file and read in the contents, which seems like >it would be very slow? > > >Sliante, >Richard S. Crawford > >http://www.mossroot.com >AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford >MSN: [EMAIL PROTECTED] > >"It is only with the heart that we see rightly; what is essential is >invisible to the eye." --Antoine de Saint Exupéry > >"Push the button, Max!" > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]