substring first 100 words from a string in perl

2011-07-28 Thread Khabza Mkhize
I want to substring words, I might be using wrong terminology. But I tried the following example the only problem I have it cut word any where it likes. eg "breathtaking" on my string is only bre. $string = "This is an awe-inspiring tour to the towering headland known as Cape Point. Magnif

Re: malformed header from script. Bad header

2011-06-20 Thread Khabza Mkhize
I am not sure if this problem is cause by print "Content-type: text/html", "\n\n"; The main problem I have commented print "Content-type: text/html", "\n\n"; since is printing line from cookies i Used On Mon, Jun 20, 2011 at 9:57 AM, Khabza Mkhize wrote:

malformed header from script. Bad header

2011-06-20 Thread Khabza Mkhize
I am receiving the following error on my error log I thought it was caused by Meta Tag content. The program was working fine for a long time its just few day I got this error and now it seem is consistent. [Sun Jun 19 22:42:12 2011] [error] [client 98.126.251.234] malformed header from script. Bad

Need help to develop a log file in Perl

2011-04-26 Thread Khabza Mkhize
I have different Web based scripts when they run update SQL Data Base. Now I need to audit every update sql in my database and store all logs to data file. I dont mind about size of a file since I will create different file foreach item Audited. I will be writing to a file username, date/time, item

Need Help with Perl Mobile Environment

2011-01-24 Thread Khabza Mkhize
Can you please help with where to find information about Perl mobile version I need to develop Accommodation Booking Website that will run on Smart phone, Iphone And Blackberry. Please send me a links with relevant information regards Khabazela Green IT Web http://www.greenitweb.co.za -- To un

Re: How to convert EURO Symbol € character to Hex

2011-01-18 Thread Khabza Mkhize
I have end up using ASCII Encoding instant of UTF-8 it does not find any thing if I use 'BC' . chr(0x20AC) . '01' then i change to 'BC' . chr(0x80) . '01' The following code works if ( $euros eq 'BC' . chr(0x80) . '01' ) { # 0x20AC is the hexadecimal value of € # ... } which I

Fwd: How to convert EURO Symbol € character to Hex

2011-01-18 Thread Khabza Mkhize
I have program which write data to SQL Database, one of my input field is € but it was working fine all along one day one of my user was working from home using remote connection to the office. He save some data when come back found all data that include euro € character have weird like "BC�01"