Re: Splitting a string

2002-09-08 Thread Janek Schleicher
Janek Schleicher wrote at Sat, 07 Sep 2002 10:06:34 +0200: >>> ... >>> print join "\n", grep defined, ($string =~ /"(.*?)"|(\w+)/g); >>> ... > > The regexp matches either "(.*?)" in $1 or (\w+) in $1. ^^ Of course, I meant $2. > But the rege

Re: Regular expression

2002-09-08 Thread Janek Schleicher
Octavian Rasnita wrote at Sat, 07 Sep 2002 11:03:39 +0200: > I am trying to match a word boundry or an end of string. > I would like something like: > > /$word[\bX]/ > > where X is the symbol used for end of string. I know that I can use $ but I > don't think I can use it between brackets. > >

Sendback programs output as Perl/CGI

2002-09-08 Thread Bruce Ambraal
Hi all,   Could anyone assist with the following: Let me explain when running  exe below on your c: drive the program, pulls the two input text file and produce two outputfile. In addition the program the program display a screen output.   My request: 1) I want for this screen output to be se

Getting the web page language

2002-09-08 Thread Octavian Rasnita
Hi all, I want to create a search engine. Please tell me how can I find out the languages used in a web page. I know that HTML 4.01 uses for example, but most of the web pages don't use this tag. What should I test to find the language used? Thank you. Teddy's Center: http://teddy.fcc.ro/ Mai

Re: Getting the web page language

2002-09-08 Thread Kevin Meltzer
Does it matter what language, or what charset? You can always look at this and the lang="foo" tags to try to determine what language, or at least what charset, the page is in. Of course, a charset (like iso-8869-1) can cover many languages, but at least you can narrow it down a little if you d

output pushing

2002-09-08 Thread Hytham Shehab
hi guys, the normal way to write output to the client browser is done when the whole program is finished. is there a way to push output to the client browser in non-buffered way - say, as line by line in the IRC clients - without need to print the the whole page again, something like appending

Re: Getting the web page language

2002-09-08 Thread Octavian Rasnita
Hi, I am wondering how Google and Altavista search engines can find out the language used in a web page. I can see that they can find the pages written in Romanian language, for example, even though the header of the file is same as for english ones. Do they search for some words? If you think th