I am trying to read two fields from other html file but I dont know how to do it....I am posting my code here....it will be great if any one of you guys can hel me:) #!c:/perl/bin/perl use CGI ':standard';#including CGI.pm class $newsVariable = new CGI; #creating new object from CGI.pm class #opening Directory opendir(DIR,"./"); @files=grep(/^item/,readdir(DIR)); close(DIR);

ask a question that can be answered and I will try and help. Your current question is too vague, describe what you are trying to do in more detail and describe where you are having trouble. -------------------------------------------------

In the above problem I am trying to read the contents of the directory and evey file in the directory starts with itemX.html, Where X is a number for example 2,3,4 or 5 . this itemX.html file has two field names rel_date and abstract. I am trying to print those two things in the table. the * sign is the place where I am trying to store value in variables. I hope it clear now if not please do let me know. Thanks

param('rel_date') and parm('abstract') would be data sent to your script from a form, not read in from a file. I think you can read in data from a file but I don't think you use param() to get that data. I am not positive about that, I would have to read the CGI module documentation. -------------------------------------------------

Thats makes sense....So how can I parse the html file...and here I am specifically looking for "contents" of Meta tag from the html file.

Are the html files all structured the same or is each different? You mentioned two fields: date and abstract, what does that relate to in the html documents you want to parse? -------------------------------------------------