Convert utf-8 XML Document to ISO format

2006-08-04 Thread webmaster
Hi List, I'm trying really hard the last 2 days to get around the problem UTF-8 to ISO-8859-1 I receive a POST of an UTF-8 XML Document, declaration is okay, the document is send by a Windows Server. Now I have tried to convert the document to Latin1 (ISO-8859-1) by all the ways I can imagine, b

Hi, strange problem on calculation

2005-12-07 Thread webmaster
Hi, I don't know why the result of my calculation doesn't make sense! foreach('0.43','-0.12','-0.08','-0.17','-0.06') { $value = $value + ($_); } print $value . ""; Value = -2.77555756156289e-17 Should be 0.00 My Perl Version is: perl -V Summary of my perl5 (revision 5 version 8 subversion

using pragma 'use locale'?

2004-12-24 Thread webmaster
Hi, I'm russian perl programmer and I have a problem: There is the part of Perl code: # Remark: Cyrillic alphabet is used in the rest of code # Remark: in the variable $query first letter of first word is uppercased, but in the # array @keyw_array this letter is lowercased. [code] $query = "Кра

Custom 500 Error Script

2003-01-07 Thread Webmaster
Please forgive me if this isn't entirely a perl question. I am able to use the .htaccess file on my server to forward any 500 errors to a custom script to handle them. I'm trying to create a script that notifies me when a user gets a 500 error message (at least while still in beta). What I am fi

Custom 500 Error page

2003-01-06 Thread Webmaster
I use a shared hosting account that allows me to customize error messages using a .htaccess file. What I would like to have happen is for my custom script (500.cgi) to be able to send an email to me (at least during beta) about the problem. I'm finding that when the user submits data on page A t

Image size

2002-02-27 Thread Webmaster
t the size as a list passable to routines in CGI.pm @attrs = attr_imgsize("test.gif"); # @attrs == ('-width', 60, '-height', 40) use Image::Size; # Get the size of an in-memory buffer ($buf_x, $buf_y) = imgsize($buf); print "X: $buf_x, Y: $buf_y&q

Image size

2002-02-13 Thread Webmaster
Hi there, I'll looking for a way to get the image size (jpg or gif). I had a look around and found some information on it. However, none of these page provide an example well enough to get an idea how to use it. Any Ideas???

Fetching a cookie

2002-02-06 Thread webmaster
Hello all, For some reason, the simple art of setting and retrieving a cookie is giving me a problem. I am using Perl 5.005_03 (using 5.6 is not something I can enforce, unfortunately). I have one CGI script that sets a cookie using the following code: $cookie = new CGI::Cookie(-name

Re: AW: F**K THE F**KUNG MAILBOT!!!!!!!!! I WANT OUT OF THIS F**KING

2001-07-10 Thread webmaster
http://learn.perl.org/ Right hand side. Enter your e-mail address ([EMAIL PROTECTED]) and check off unsubscribe.. and f o l l o w the directions. > i've tried 12 times or more to get out of this list > So... what should i do now > > -Ursprüngliche Nachricht- > Von: [EM

RE: F**K THE F**KUNG MAILBOT!!!!!!!!! I WANT OUT OF THIS F**KING LIST !!!!!!!!!!!!!!!!

2001-07-10 Thread webmaster
I dont think you understand. You subscribed to it. Either that, or somebody had access to your account with rights to reply to the confirmation message. Thats your own fault. People like this remind me of people who drive without using signal lights. They have this "higher than you, you se

Re: email attachment

2001-06-17 Thread WebMaster AIM-US
Teresa, Make sure you look into the confusing syntax of writing an e-mail attachment. Here's a good place to look: http://alma.ch/perl/Mail-Sendmail-FAQ.htm#attachments It contains a neat module (I have not tried it ... it contained way more than I ne

Re: CGI.pm install

2001-06-14 Thread WebMaster AIM-US
If, for some reason, CGI.pm is not installed on the server, I believe you can place it in the folder where you are going to run the script (i.e your cgi-bin. That may pose some security issues I'm not aware of, but if all else fails ... Stephen

Re: javascript within print "<

2001-06-12 Thread WebMaster AIM-US
Another option is to put the JavaScript in the text file, and have Perl read from that file, and print it directly. This means you can re-use the JavaScript code in other similar script without needing to edit each script when the JavaScript need changing: open(J