Re: uninitialized variable

2005-11-01 Thread Shawn Corey
Adedayo Adeyeye wrote: Hello, I'm getting an error when trying to run a script. Part of the scripts is Line 10 my $action = param('form_action'); . Line 14 Search_DB() if($action eq 'search'); The error I get is: [Tue Nov 1 16:28:41 2005] connect_script.cgi: Use of uninitialized val

Re: indexing... in some way

2005-12-11 Thread Shawn Corey
Adriano Allora wrote: `sort tagged_files/* | uniq > word+tag.txt`; ??? All files in tagged_files/* are unique. This looks like a lot of make work. Try File::Find instead. See `perldoc File::Find`. open(IDX, ") { next if /^\W.+/; open(TMP, ">indexes/$_.txt");

Re: difference web/cli

2005-12-27 Thread Shawn Corey
Chris Devers wrote: On Tue, 27 Dec 2005, Brano Gerzo wrote: I am programming one script. It should be accessible as cgi-bin from web, and also as commandline from shell. But I don't know how to properly handle arguments and to know, if script was called from commandline, or from web. Anyone