getstore and comments

2005-08-19 Thread Adriano Allora
hi to all, Some questions: 1) how can I write multine comments? something like /** ... **/? 2) the following script doesn't find the page requested in getstore (baolian.local = 127.0.0.1). Why? 3) $homepage must be a real page/file or I can use it like a normal variable or a filehandle to read

final Re: getstore and comments

2005-08-22 Thread Adriano Allora
hi, for infos on comments and over all for advices about getstore. Now I did what I wanted (using get() instead of getstore(), and localhost, and storing the result in a variable). (The ovid cgi-course seems very well.) Thank you all, alladr |^|_|^|_|^| |^|_|

reading a client file

2005-08-24 Thread Adriano Allora
hi to all, I need to read a file selected by (and stored in the computer of) users. My first idea was on uploaded files: (all variables are sent correctly; $_ is the name of the file $file is a relative pathname) s/.*[\/\\](.*)/$1/; $file = "upnu

count how many tags

2005-08-31 Thread Adriano Allora
dear all, I didn't understand how to use the module HTML, but I need to count how many tags of several types appear in a web page and so I wrote this script. Someone can tell me why this one doesn't work? %tags = ("paragraph" => "p", "list_o" => "ol", "list_no" => "ul",

Re: count how many tags

2005-08-31 Thread Adriano Allora
well, the name of the sub is correct. I translated it and I add an error only in my e-mail. alladr while(<$filename>) { foreach $var (keys(%tags)) { $$var += count_it($$var, $var, $tags{$var},$_); } } foreach $va

installing modules

2005-09-05 Thread Adriano Allora
hi to all, my server-administrator told me I cannot use ssh to install some modules (LWP, HTML) on server. How I can do it using only ftp? thank a lot, alladr |^|_|^|_|^| |^|_|^|_|^| || || |

deleting scripts

2005-09-18 Thread Adriano Allora
Hi all, I need to delete all the scripts in a webpage read by LWP::get, but: 1) I cannot install modules on server; 2) this regexp doesn't work: s/

running interactively

2005-10-12 Thread Adriano Allora
ha to all, I need to use a a shell-program but I cannot pass all the arguments to this program via system() function. In other words: the program doesn't accept all the arguments via command line: I need to open it and write interactively some instructions. Is there a module which works in t

weird script!

2005-10-12 Thread Adriano Allora
hi to all, I want to write a very stupid script. It shuold: - upload a file from client (works) - extratc ascii from html (works) - show the sentence number X (works for nr.0) - create a button "following sentence" (does not work!) - redirect to the same page and re-upload the same file to show t

sessions

2005-10-31 Thread Adriano Allora
hi to all, I use session (CGI::Sessions) to record some data in a textual search-engine (CQP). I have this problem: I need to destroy a session before starting the new one, but I cannot. actually I wrote this code: $qualecookie = $pagina->cookie(CGIRICERCA); if($qualecookie) {

indexing... in some way

2005-12-11 Thread Adriano Allora
hi to all, this question isn't exactly a cgi-question, but I need to solve this problem before writing the cgi interface. I've got a list of tagged files. I've listed all the couple word+tag. now, for each word+tag I want to write a file containing all the filename in which compare the coupl

using variable in param

2006-02-21 Thread Adriano Allora
Hi all, I need to obtain some values (passed with a form) without knowing their names (but I know these variable names correspond to names of some files. So, I tried to write something like this: opendir(QUERY, "/Users/adrianoallora/Sites/corpora/VALICO/indici_testa/") or $errtex = $!; @

catching multiple values

2006-04-18 Thread Adriano Allora
Hi to all, I have a page with an option list: and I need to catch all the values of this list but, if I write: $legenda = $pagina->param("legenda"); the variable $legenda is equal only to the first selected item. I read the cgi perldoc, but I cannot locate the answer to may questi

escape charachters

2006-08-11 Thread Adriano Allora
hi all, I use use HTML::Entities; and the functions decode() and encode(), but I'd prefer working with escape characters (è, for example) than working with exadecimal (or what they are:  for example). Must I use a regexp to substitute each or I can use some other function? Thank at all, al