From raymond76@example.com Mon Oct 01 12:13:13 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 42667 invoked by uid 500); 1 Oct 2001 12:13:12 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 42652 invoked from network); 1 Oct 2001 12:13:11 -0000 Message-Id: <raymond76@example.com> From: "Hans de Groot" <raymond76@example.com> To: "raymond76@example.com" <raymond76@example.com> Date: Mon, 01 Oct 2001 14:15:17 +0200 Reply-To: "Hans de Groot" <raymond76@example.com> Priority: Normal X-Mailer: PMMail 2000 Professional (2.20.2030) For Windows 2000 (5.0.2195) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: agains session problems (semaphores) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I know this has been a topic that has been discussed in detail but I cannot find my answer. I am using Apache-Session 1.53. If make test this archive I get this error message: --- t/99mysqllock....... (in cleanup) 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mysql888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4st execute failed: MySQL server has gone away at blib/lib/Apache/Session/Lock/MySQL.pm line 70. t/99mysqllock.......ok t/99mysqlstore......ok t/99mysql........... (in cleanup) 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mysql888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4st execute failed: MySQL server has gone away at blib/lib/Apache/Session/Lock/MySQL.pm line 70. t/99mysql...........ok --- In I look in the Mysql log it looks fine: ---- 011001 14:01:27 149 Connect test@localhost as anonymous on test 150 Connect test@localhost as anonymous on test 150 Query SELECT GET_LOCK('Apache-Session-09876543210987654321098765432109', 3600) 149 Query SELECT GET_LOCK('Apache-Session-09876543210987654321098765432109', 0) 150 Query SELECT RELEASE_LOCK('Apache-Session-09876543210987654321098765432109') 149 Query SELECT GET_LOCK('Apache-Session-09876543210987654321098765432109', 0) 149 Query SELECT RELEASE_LOCK('Apache-Session-09876543210987654321098765432109') 149 Query SELECT GET_LOCK('Apache-Session-09876543210987654321098765432109', 3600) 150 Quit 149 Query SELECT GET_LOCK('Apache-Session-09876543210987654321098765432109', 0) 149 Quit 151 Connect test@localhost as anonymous on sessions 151 Query SELECT GET_LOCK('Apache-Session-ec8bb133ee472c1ef2b6f09238d88f8c', 3600) 152 Connect test@localhost as anonymous on sessions 152 Query INSERT INTO sessions (id, a_session) VALUES ('ec8bb133ee472c1ef2b6f09238d88f8c','\0\0\0 ec8bb133ee472c1ef2b6f09238d88f8c\0\0\0 _session_id') 152 Query UPDATE sessions SET a_session = '\0\0\0 bar\0\0\0foo\0\0\0 tom dick harry\0\0\0baz ec8bb133ee472c1ef2b6f09238d88f8c\0\0\0 _session_id' WHERE id = 'ec8bb133ee472c1ef2b6f09238d88f8c' 151 Query SELECT RELEASE_LOCK('Apache-Session-ec8bb133ee472c1ef2b6f09238d88f8c') 151 Quit 152 Quit 153 Connect test@localhost as anonymous on sessions 153 Query SELECT GET_LOCK('Apache-Session-ec8bb133ee472c1ef2b6f09238d88f8c', 3600) 154 Connect test@localhost as anonymous on sessions 154 Query SELECT a_session FROM sessions WHERE id = 'ec8bb133ee472c1ef2b6f09238d88f8c' 153 Query SELECT RELEASE_LOCK('Apache-Session-ec8bb133ee472c1ef2b6f09238d88f8c') 153 Quit 154 Quit 155 Connect test@localhost as anonymous on sessions 155 Query SELECT GET_LOCK('Apache-Session-ec8bb133ee472c1ef2b6f09238d88f8c', 3600) 155 Query SELECT a_session FROM sessions WHERE id = 'ec8bb133ee472c1ef2b6f09238d88f8c' 155 Query DELETE FROM sessions WHERE id = 'ec8bb133ee472c1ef2b6f09238d88f8c' 155 Quit --------- So it seens talkting to mysql is not the problem. In the Embperl log I get this when I trie to access a page that just set $udat{test}='test' ---- [32092]ERR: 24: Line 1: Error in Perl code: Permission denied at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Lock/Semaphore.pm line 92. ----- I have read about the semaphores and that you can delete them (some of them) and something about different users but this is above my knowlege. Could anyone explain in more detail which semaphore to delete and how to delete them and WHERE TO FIND THEM :-) and if it's something to do with user rights, how to change them to the right ones and for which programs? I am running emb perl for some time now and it's great, I run it on RH6.0, 6.1, 6.2 and 7.0 (the 7.0 also took me ages to get up and running but somehow I managed) but the RH 7.1 is really a mistery to me. It allready costs me 4 days of fiddling :-( and still nothing closer. Thank you. Hans de Groot ------ Hans de Groot Interspective Internet Services B.V. Tel: 705.809.9573 Fax 705.809.9573 www: http://www.interspective.nl email: raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Mon Oct 01 16:14:28 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 61996 invoked by uid 500); 1 Oct 2001 16:14:27 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 61966 invoked from network); 1 Oct 2001 16:14:26 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Hans de Groot" <raymond76@example.com>, <raymond76@example.com> References: <raymond76@example.com> Subject: Re: agains session problems (semaphores) Date: Mon, 1 Oct 2001 18:15:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > ---- > [32092]ERR: 24: Line 1: Error in Perl code: Permission denied at /usr/lib/perl5/site_perl/5.6.0/Apache/Session/Lock/Semaphore.pm line 92. > ----- > > I have read about the semaphores and that you can delete them (some of them) and something about different users but this is above my knowlege. > > Could anyone explain in more detail which semaphore to delete and how to delete them and WHERE TO FIND THEM :-) and if it's something to do with user rights, how to change them to the right ones and for which programs? > The semaphore is setup by Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session that only the user that creates it can access it. If you change the user that Apache runs as (or have more then oneyou get into trouble). Use ipcs to list all semaphores and ipcrm to remove them. Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session will recreate a new correct one. If you have muliple Apache that runs as different users, you need to give them different semaphore keys (with the SemaphoreKey argument). See perldoc Apach888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Session888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Lock888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Semaphore. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Mon Oct 01 17:46:05 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 90351 invoked by uid 500); 1 Oct 2001 17:46:04 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 90328 invoked from network); 1 Oct 2001 17:46:03 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Wim Kerkhoff" <raymond76@example.com> Cc: "embperl list" <raymond76@example.com> References: <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> Subject: Re: Embperl.v2 + SSI Syntax / tables Date: Mon, 1 Oct 2001 19:47:58 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > Ok, I've got a better patch now. Great :-) > I've removed my earlier debug code and > the <!--#include embperl="foo"--> hack. I've changed the code for > <!--#include file="file"--> So that it does this instead: > > Execute ({inputfile=>$file, output=>$return, syntax=> "Text"}) > > May as well use the technology if it exists, instead of opening and > reading the file manually... > Yes and No. Open, read and output is faster then useing Execute, but with Execute you get all benefits of EmbperlObject. Maybe it would be a good idea to add a syntax argument, so we can also include Embperl files... > <!--#include virtual="file"--> > > Basically does this now: > > Execute ({inputfile=>$virtual_file, output=>$return, syntax=>"SSI"}) > > If somebody wants to put Embperl code into $virtual_file, right now > they'd have to switch the syntax using <!--#syntax type="Embperl > SSI"-->. I'm not to sure how this could be made smarter, or inherit the > default of the calling document. > Either add a (optional) syntax argument or maybe look at the file extention. The second possiblity will come into Embperl in one of the next releases, where you will be able to make mappings for example file extention to syntax. > The only other thing I need to play yet with, is to get this to work: > > <!--#include virtual="/something?foo=bar&baz=tan"--> > > I guess basically split on the ?, then throw the arguments into %fdat... > Yes, but do not directly throw it into %fdat, but instead pass them as fdat parameter to Execute What is the following code good for ? It looks a little bit like a hack... if ($filename =~ /^\//) { $filename = $ENV{DOCUMENT_ROOT} . $filename; } > > > Is optDisableTableScan gone forever? Or is it one of those things > > > that's hard to reimplement in the 2.0 rewrite? > > > > Maybe it will come again, not sure. I prefer more to make Embperl more smart > > to handle such situations automaticly correct... > > Of course... by the way, regarding the </td>/tr/table thing I discovered > the other day... I discovered something which may or not help, but I'll > mention it anyway since it might help. I was taking a look at > HTML888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mbperl888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Syntax888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mbperlHTML888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Init, and noticed that it wasn't > doing a AddTagBlock for td... Yes, Embperl never had looked at td tags, only tr and table > so I commented out the AddTagBlocks for tr > and table, and now <td></tr></table> comes through fine... > Of course it comes out fine now, because Embperl didn't look at raymond76@example.com. That's the same behaviour as $optDisableTableScan in 1.x, but you can't switch it dynamicly on and off, so you won't have any dynamic tables. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Tue Oct 02 02:53:27 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 458 invoked by uid 500); 2 Oct 2001 02:53:25 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 439 invoked from network); 2 Oct 2001 02:53:24 -0000 Date: Tue, 2 Oct 2001 12:53:19 +1000 To: raymond76@example.com Subject: Re: Calling a cgi on other web server. Message-ID: <raymond76@example.com> Mail-Followup-To: gus, raymond76@example.com References: <raymond76@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <raymond76@example.com> User-Agent: Mutt/1.3.20i From: Angus Lees <raymond76@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, Sep 27, 2001 at 06:09:43PM -0700, Andy Lim wrote: > This might be a stupid question. > I have two web servers. One is my main web server which runs under linux and > EMBPERL. (Web server-A) > The other is a windows based web server. (Web server - B) > > I have ODBC connection setup between server B and unidata server. But can't > have connection from server A because they don't have ODBC driver for Linux > yet. if server B can use (perl) DBI to access the database, 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Proxy might be the cleanest solution. otherwise (as andrew said), an LWP client to access a cgi on server B. if you can write a custom script for B, you can probably return the data in a more "helpful" format than HTML. -- - Gus --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Tue Oct 02 19:25:59 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 83320 invoked by uid 500); 2 Oct 2001 19:25:58 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 83309 invoked from network); 2 Oct 2001 19:25:57 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Joshua Spoerri" <raymond76@example.com> Cc: <raymond76@example.com> References: <raymond76@example.com> Subject: Re: Different values for SELECTs with same name (was: Embperl BUG report) Date: Tue, 2 Oct 2001 21:27:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > sorry i didn't have a chance to track this down further and fix it, > but if you have a chance maybe you could do so... > > in 1.3.3, certain changes to the %fdat hash break parsing of selects in html forms. > > i'm attaching a simple piece of embperl that tickles the bug. > That's not a bug, but an optimization. Your code contains two SELECT tags with the same name but different values. Embperl assumes that the value doesn't change between these two selects and preprocesses the values when it encounters the first SELECT. The preprocessing result is stored for later use, to make things fasters. That the same for checkboxes, because in both cases there may exist more than one value for a given name. Your code should run correctly if you reset the hash %fsplitdat (i.e. %fsplitdat = () ) between the two selects. Gerald P.S. Please send any further questions to the embperl mailing list ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Tue Oct 02 20:04:41 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 22918 invoked by uid 500); 2 Oct 2001 20:04:41 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 22843 invoked from network); 2 Oct 2001 20:04:39 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Boyd, David" <raymond76@example.com>, "EmbPerl News Group (E-mail)" <raymond76@example.com> References: <raymond76@example.com> Subject: Re: Shortcommings of DBIx Date: Tue, 2 Oct 2001 22:06:36 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > But, nothing displayed. It turns out that if there is something missing > from a column, then nothing gets displayed. That is note1 is not required > to entered by the user, but I want to display it if it is there. > > Anyone else run into this? > Yes, you should be able to find it in the mailing list archives... The dynamic tables features of Embperl detected the end of the table/row when an expression, which contains $rwo/$col is undefined. This is the case when the column contains NULL. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Tue Oct 02 20:11:24 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 32457 invoked by uid 500); 2 Oct 2001 20:11:24 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 32293 invoked from network); 2 Oct 2001 20:11:22 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "alan milligan" <raymond76@example.com>, <raymond76@example.com> References: <raymond76@example.com> Subject: Re: inheriting from DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset Date: Tue, 2 Oct 2001 22:12:19 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > I get this unfortunate effect of "Need DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset or setup parameter " > > This is because there are a few places in the Setup functions of > DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset which directly test the object type : > > elsif (ref ($arg) eq 'DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset') > We should trun this into elsif (ref ($arg) && $arg -> isa ('DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset')) this is a little bit slower, but of course much more OO and should solve your problem. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 16:27:16 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 95339 invoked by uid 500); 4 Oct 2001 16:27:16 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Delivered-To: moderator for raymond76@example.com Received: (qmail 862 invoked from network); 4 Oct 2001 13:58:32 -0000 Message-ID: <raymond76@example.com> From: "Carter, Pamela A." <raymond76@example.com> To: "'raymond76@example.com'" <raymond76@example.com> Subject: Formatting Variables in Perl Date: Thu, 4 Oct 2001 08:51:41 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am passing a variable that needs to be in currency format (with two decimal places). It passes as a whole number with no decimal. How can I format this? --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 17:26:52 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 94378 invoked by uid 500); 4 Oct 2001 17:26:51 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 94312 invoked from network); 4 Oct 2001 17:26:50 -0000 Date: Thu, 4 Oct 2001 14:34:18 -0300 From: "Luiz Fernando B. Ribeiro" <raymond76@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: "Luiz Fernando B. Ribeiro" <raymond76@example.com> X-Priority: 3 (Normal) Message-ID: <raymond76@example.com> To: raymond76@example.com Subject: Re: Formatting Variables in Perl In-Reply-To: <raymond76@example.com> References: <raymond76@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Pamela, Try this: $value = 200; $value_ok = sprintf("%.2f", $value); print "R\$ $value_ok"; # gives R$ 200.00 Resposta a sua mensagem de quinta-feira, 4 de outubro de 2001: CPA> I am passing a variable that needs to be in currency format (with two CPA> decimal places). It passes as a whole number with no decimal. How can I CPA> format this? CPA> --------------------------------------------------------------------- CPA> To unsubscribe, e-mail: raymond76@example.com CPA> For additional commands, e-mail: raymond76@example.com Sem mais, Luiz Fernando B. Ribeiro Engenho Soluções para a Internet raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 17:44:46 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 28039 invoked by uid 500); 4 Oct 2001 17:44:45 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 27953 invoked from network); 4 Oct 2001 17:44:44 -0000 Mime-Version: 1.0 X-Sender: nazgul%somewhere.com@gate Message-Id: <p05100306b7e2501cf604@[83.161.120.155]> In-Reply-To: <raymond76@example.com> References: <raymond76@example.com> <raymond76@example.com> Date: Thu, 4 Oct 2001 13:44:22 -0400 To: "Gerald Richter" <raymond76@example.com> From: Kee Hinckley <raymond76@example.com> Subject: Re: Shortcommings of DBIx Cc: "Boyd, David" <raymond76@example.com>, "EmbPerl News Group (E-mail)" <raymond76@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At 10:06 PM +0200 10/2/01, Gerald Richter wrote: > > But, nothing displayed. It turns out that if there is something missing >> from a column, then nothing gets displayed. That is note1 is not required >> to entered by the user, but I want to display it if it is there. >> >> Anyone else run into this? >> > >Yes, you should be able to find it in the mailing list archives... > >The dynamic tables features of Embperl detected the end of the table/row >when an expression, which contains $rwo/$col is undefined. This is the case >when the column contains NULL. I actually answered this offline, because I didn't have time to check. But if you run into this, just do the following. [+ $foo[$row] || ' ' +] and the expression won't fail. Obviously you shouldn't do this on all the fields in a row, but if you have some which are allowed to be null, this will work. - -- Kee Hinckley - Somewhere.Com, LLC http://consulting.somewhere.com/ raymond76@example.com (or ...!alice!nazgul for time travelers :-) I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's. -----BEGIN PGP SIGNATURE----- Version: PGP Personal Security 7.0.3 iQA/AwUBO7ygBCZsPfdw+r2CEQIUcQCbBn6r41lVw42cYuwU9ZU+gXPC9VwAoNNf fjwnuZjiaNSqOCKZdIL1zLOL =Ktet -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 17:55:21 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 44430 invoked by uid 500); 4 Oct 2001 17:55:21 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 44382 invoked from network); 4 Oct 2001 17:55:21 -0000 Message-ID: <raymond76@example.com> From: "Carter, Pamela A." <raymond76@example.com> To: "'Luiz Fernando B. Ribeiro'" <raymond76@example.com> Subject: RE: Formatting Variables in Perl Date: Thu, 4 Oct 2001 12:48:07 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thank you! -----Original Message----- From: Luiz Fernando B. Ribeiro [mailto:raymond76@example.com] Sent: Thursday, October 04, 2001 12:34 PM To: Carter, Pamela A. Subject: Re: Formatting Variables in Perl Hi Pamela, Try this: $value =3D 200; $value_ok =3D sprintf("%.2f", $value); print "R\$ $value_ok"; # gives R$ 200.00 Resposta a sua mensagem de quinta-feira, 4 de outubro de 2001: CPA> I am passing a variable that needs to be in currency format (with = two CPA> decimal places). It passes as a whole number with no decimal. = How can I CPA> format this?=20 CPA> = --------------------------------------------------------------------- CPA> To unsubscribe, e-mail: raymond76@example.com CPA> For additional commands, e-mail: raymond76@example.com Sem mais, Luiz Fernando B. Ribeiro Engenho Solu=E7=F5es para a Internet raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 19:05:25 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 65576 invoked by uid 500); 4 Oct 2001 19:05:25 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 65543 invoked from network); 4 Oct 2001 19:05:25 -0000 Message-ID: <raymond76@example.com> From: "Carter, Pamela A." <raymond76@example.com> To: "'Luiz Fernando B. Ribeiro'" <raymond76@example.com> Subject: RE: Formatting Variables in Perl Date: Thu, 4 Oct 2001 13:58:45 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Im still having trouble. Will this work with Print MAIL as well? -----Original Message----- From: Luiz Fernando B. Ribeiro [mailto:raymond76@example.com] Sent: Thursday, October 04, 2001 12:34 PM To: Carter, Pamela A. Subject: Re: Formatting Variables in Perl Hi Pamela, Try this: $value =3D 200; $value_ok =3D sprintf("%.2f", $value); print "R\$ $value_ok"; # gives R$ 200.00 Resposta a sua mensagem de quinta-feira, 4 de outubro de 2001: CPA> I am passing a variable that needs to be in currency format (with = two CPA> decimal places). It passes as a whole number with no decimal. = How can I CPA> format this?=20 CPA> = --------------------------------------------------------------------- CPA> To unsubscribe, e-mail: raymond76@example.com CPA> For additional commands, e-mail: raymond76@example.com Sem mais, Luiz Fernando B. Ribeiro Engenho Solu=E7=F5es para a Internet raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 19:06:44 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 67020 invoked by uid 500); 4 Oct 2001 19:06:44 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 67009 invoked from network); 4 Oct 2001 19:06:43 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Chris Allen" <raymond76@example.com> Cc: <raymond76@example.com> References: <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> Subject: Re: Setup of CGI.pm failed Date: Thu, 4 Oct 2001 21:07:40 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > Thanks Gerald - unfortunately I still don't know *WHY* CGI.pm dies - > and I am lost about how to find out. > > I have put in a log line just after the eval to dump %ENV, but this > does not look particularly unusual. > Could you print out $@ directly after the eval { $cgi = new CGI } ; When CGI fails, does it contain any usefull information ? In past sometimes it has helped to upgrade CGI.pm in such cases, but it could also simply the case that people press "Abort" during the upload or make a double click on the submit button which also aborts the first request. I really would be happy to find out the reason too, because this isn't the first time this issue came up... Gerald P.S. Let's take the discussion on the Embperl list, maybe somebody there has any idea ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 19:14:26 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 72807 invoked by uid 500); 4 Oct 2001 19:14:25 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 72763 invoked from network); 4 Oct 2001 19:14:25 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Carter, Pamela A." <raymond76@example.com> Cc: <raymond76@example.com> References: <raymond76@example.com> Subject: Re: Formatting Variables in Perl Date: Thu, 4 Oct 2001 21:16:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >Im still having trouble. Will this work with Print MAIL as well? If MAIL is a filehandle, Yes Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 19:37:42 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 21319 invoked by uid 500); 4 Oct 2001 19:37:42 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 21283 invoked from network); 4 Oct 2001 19:37:41 -0000 Date: Thu, 4 Oct 2001 16:43:37 -0300 From: "Luiz Fernando B. Ribeiro" <raymond76@example.com> X-Mailer: The Bat! (v1.53d) Reply-To: "Luiz Fernando B. Ribeiro" <raymond76@example.com> X-Priority: 3 (Normal) Message-ID: <raymond76@example.com> To: "Carter, Pamela A." <raymond76@example.com> CC: raymond76@example.com Subject: Re[2]: Formatting Variables in Perl In-Reply-To: <raymond76@example.com> References: <raymond76@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Pamela, Reply: CPA> Im still having trouble. Will this work with Print MAIL as well? You can't use sprintf inside double quotes in print, try this: print MAIL 'You got R$ ' . sprintf("%.2f", $valor) . 'bucks!'; or you could try to use the printf command instead of print, but the sintax is different, take a look at the the perlfunc doc: $ perldoc perlfunc but this will work for you: printf MAIL "You got R\$ %.2f",$valor; CPA> -----Original Message----- CPA> From: Luiz Fernando B. Ribeiro [mailto:raymond76@example.com] CPA> Sent: Thursday, October 04, 2001 12:34 PM CPA> To: Carter, Pamela A. CPA> Subject: Re: Formatting Variables in Perl CPA> Hi Pamela, CPA> Try this: CPA> $value = 200; CPA> $value_ok = sprintf("%.2f", $value); CPA> print "R\$ $value_ok"; # gives R$ 200.00 CPA> Resposta a sua mensagem de quinta-feira, 4 de outubro de 2001: CPA>> I am passing a variable that needs to be in currency format (with two CPA>> decimal places). It passes as a whole number with no decimal. How can CPA> I CPA>> format this? CPA>> --------------------------------------------------------------------- CPA>> To unsubscribe, e-mail: raymond76@example.com CPA>> For additional commands, e-mail: raymond76@example.com CPA> Sem mais, CPA> Luiz Fernando B. Ribeiro CPA> Engenho Soluções para a Internet CPA> raymond76@example.com CPA> --------------------------------------------------------------------- CPA> To unsubscribe, e-mail: raymond76@example.com CPA> For additional commands, e-mail: raymond76@example.com Sem mais, Luiz Fernando B. Ribeiro Engenho Soluções para a Internet raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 20:39:42 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 1392 invoked by uid 500); 4 Oct 2001 20:39:42 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 1380 invoked from network); 4 Oct 2001 20:39:41 -0000 Message-ID: <raymond76@example.com> From: "Carter, Pamela A." <raymond76@example.com> To: "'Luiz Fernando B. Ribeiro'" <raymond76@example.com> Subject: RE: Re[2]: Formatting Variables in Perl Date: Thu, 4 Oct 2001 15:33:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thank you so much! it worked! :) -----Original Message----- From: Luiz Fernando B. Ribeiro [mailto:raymond76@example.com] Sent: Thursday, October 04, 2001 2:44 PM To: Carter, Pamela A. Cc: raymond76@example.com Subject: Re[2]: Formatting Variables in Perl Hi Pamela, Reply: CPA> Im still having trouble. Will this work with Print MAIL as well? You can't use sprintf inside double quotes in print, try this: print MAIL 'You got R$ ' . sprintf("%.2f", $valor) . 'bucks!'; or you could try to use the printf command instead of print, but the sintax is different, take a look at the the perlfunc doc: $ perldoc perlfunc but this will work for you: printf MAIL "You got R\$ %.2f",$valor; CPA> -----Original Message----- CPA> From: Luiz Fernando B. Ribeiro = [mailto:raymond76@example.com] CPA> Sent: Thursday, October 04, 2001 12:34 PM CPA> To: Carter, Pamela A. CPA> Subject: Re: Formatting Variables in Perl CPA> Hi Pamela, CPA> Try this: CPA> $value =3D 200; CPA> $value_ok =3D sprintf("%.2f", $value); CPA> print "R\$ $value_ok"; # gives R$ 200.00 CPA> Resposta a sua mensagem de quinta-feira, 4 de outubro de 2001: CPA>> I am passing a variable that needs to be in currency format (with = two CPA>> decimal places). It passes as a whole number with no decimal. = How can CPA> I CPA>> format this?=20 CPA>> = --------------------------------------------------------------------- CPA>> To unsubscribe, e-mail: raymond76@example.com CPA>> For additional commands, e-mail: raymond76@example.com CPA> Sem mais, CPA> Luiz Fernando B. Ribeiro CPA> Engenho Solu=E7=F5es para a Internet CPA> raymond76@example.com CPA> = --------------------------------------------------------------------- CPA> To unsubscribe, e-mail: raymond76@example.com CPA> For additional commands, e-mail: raymond76@example.com Sem mais, Luiz Fernando B. Ribeiro Engenho Solu=E7=F5es para a Internet raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Thu Oct 04 23:34:48 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 18824 invoked by uid 500); 4 Oct 2001 23:34:48 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 18792 invoked from network); 4 Oct 2001 23:34:47 -0000 X-Originating-IP: [83.161.120.155] From: "alan milligan" <raymond76@example.com> To: raymond76@example.com Cc: raymond76@example.com Bcc: Subject: Re: inheriting from DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset Date: Thu, 04 Oct 2001 23:34:29 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: <raymond76@example.com> X-OriginalArrivalTime: 04 Oct 2001 23:34:29.0410 (UTC) FILETIME=[1CBD0020:01C14D2D] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Gerald, Unfortunately, I was experiencing a lot of other function dispatch problems with inheritance. It is very difficult to have confidence with the Perl dispatch mechanisms for OO, so I was too nervous to proceed with this, as there is quite an amount of code in DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset to both understand and test. I switched everything over to a containment model instead and this meets my needs presently. I do have another question regarding Embperl scoping though. I was using the Perl888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Module directive in my Apache config, expecting that any interpreter would get any global symbols defined in the module. However, these appear to be unavailable within my Embperl container. Do all global symbols not get sucked in by default? Alan >From: "Gerald Richter" <raymond76@example.com> >To: "alan milligan" <raymond76@example.com>, <raymond76@example.com> >Subject: Re: inheriting from DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset >Date: Tue, 2 Oct 2001 22:12:19 +0200 >MIME-Version: 1.0 >Received: from [83.161.120.155] by hotmail.com (3.2) with ESMTP id >MHotMailBD836A7100A1400431C8D9074097FC830; Tue, 02 Oct 2001 13:11:31 -0700 >Received: from mond (mond.gr.ecos.de [83.161.120.155])by lnx1.i.ecos.de >(Postfix) with SMTPid C66352C2CC; Tue, 2 Oct 2001 22:11:26 +0200 (MEST) >>From raymond76@example.com Tue, 02 Oct 2001 13:13:16 -0700 >Message-ID: <raymond76@example.com> >References: <raymond76@example.com> >X-Priority: 3 >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook Express 5.50.4807.1700 >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 > > > I get this unfortunate effect of "Need DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset or setup >parameter >" > > > > This is because there are a few places in the Setup functions of > > DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset which directly test the object type : > > > > elsif (ref ($arg) eq 'DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset') > > > >We should trun this into > > elsif (ref ($arg) && $arg -> isa ('DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset')) > >this is a little bit slower, but of course much more OO and should solve >your problem. > >Gerald > > > >------------------------------------------------------------- >Gerald Richter ecos electronic communication services gmbh >Internetconnect * Webserver/-design/-datenbanken * Consulting > >Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz >E-Mail: raymond76@example.com Voice: 705.809.9573 >WWW: http://www.ecos.de Fax: 705.809.9573 >------------------------------------------------------------- > > > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Fri Oct 05 16:58:18 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 85407 invoked by uid 500); 5 Oct 2001 16:58:18 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 85357 invoked from network); 5 Oct 2001 16:58:17 -0000 Message-ID: <001901c14dbe$f57205a0$6400a8c0@jamesbond> From: "Jan Kyncl" <raymond76@example.com> To: <raymond76@example.com> Subject: $fdat like part of filename Date: Fri, 5 Oct 2001 18:58:00 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01C14DCF.A7A10040" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 705.809.9573 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0014_01C14DCF.A7A10040 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Hi, I have this problem when I use $fdat variable like part of filename = I'll get this error: [28024]ERR: 24: Line 1: Error in Perl code: Insecure dependency in open = while running with -T switch at = /home/www/ceska-media/content_management/fdat.html line 13.=20 Source code: $path =3D '/home/www/doc/server/data_media/photos/authors/';=20 $path.=3D$fdat{id}; $path.=3D'.jpg'; open FILE, "> $path" || die; print FILE $buffer while read($fdat{photo}, $buffer, 32768); close FILE; } My configuration: Apache/1.3.14 (Unix) mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.6 = HTML888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mbperl 1.3.0 [Fri Oct 5 18:51:10 2001] Thanks anyway Best regards =20 Jan Kyncl Director Prvni ceska virtualni Ltd. ------=_NextPart_000_0014_01C14DCF.A7A10040 Content-Type: text/html; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-2"> <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3D"Arial CE" size=3D2>Hi,</FONT></DIV> <DIV><FONT size=3D2></FONT>&nbsp;</DIV> <DIV><FONT size=3D2>I have this problem when I use&nbsp; $fdat variable=20 like&nbsp;part of filename I'll get&nbsp; this error:</FONT></DIV> <DIV> <P>[28024]ERR: 24: Line 1: Error in Perl code: Insecure dependency in = open while=20 running with -T switch at = /home/www/ceska-media/content_management/fdat.html=20 line 13.=20 <P><FONT size=3D2>Source code:</FONT> <P><FONT face=3D"Arial CE" size=3D2>$path&nbsp;=3D=20 '/home/www/doc/server/data_media/photos/authors/'; </FONT> <P><FONT face=3D"Arial CE" size=3D2><BR>$path.=3D$fdat{id};</FONT></P> <P><FONT face=3D"Arial CE" size=3D2>$path.=3D'.jpg';<BR>open FILE, "&gt; = $path" ||=20 die;<BR>print FILE $buffer<BR>while read($fdat{photo}, $buffer, = 32768);<BR>close=20 FILE;</P> <P>}</P> <P>My configuration:</FONT></P> <P>Apache/1.3.14 (Unix) mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.6=20 HTML888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mbperl 1.3.0 [Fri Oct 5 18:51:10 2001] <P><FONT face=3D"Arial CE" size=3D2>Thanks anyway</FONT></P></DIV> <DIV><FONT size=3D2></FONT>&nbsp;</DIV> <DIV><FONT face=3D"Arial CE" size=3D2>Best=20 regards<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n= bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb= sp;=20 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb= sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;=20 Jan=20 Kyncl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs= p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp= ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20 Director<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&= nbsp;&nbsp;&nbsp;=20 Prvni ceska virtualni Ltd.<BR></FONT></DIV></BODY></HTML> ------=_NextPart_000_0014_01C14DCF.A7A10040-- From raymond76@example.com Fri Oct 05 17:37:22 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 35354 invoked by uid 500); 5 Oct 2001 17:37:21 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 35315 invoked from network); 5 Oct 2001 17:37:20 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Jan Kyncl" <raymond76@example.com>, <raymond76@example.com> References: <001901c14dbe$f57205a0$6400a8c0@jamesbond> Subject: Re: $fdat like part of filename Date: Fri, 5 Oct 2001 19:39:16 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >I have this problem when I use $fdat variable like part of filename I'll get this error: >[28024]ERR: 24: Line 1: Error in Perl code: Insecure dependency in open while running with -T switch >at /home/www/ceska-media/content_management/fdat.html line 13. That's the sense of Perl tainting, it tells you you shouldn't do that: >$path.=$fdat{id}; > >$path.='.jpg'; >open FILE, "> $path" || die; What's happen's if anybody submits a ../../ etc. as id ? In that case the picutre will get written to the wrong location, maybe somebody will be able to overwrite something... Never use submitted values directly in a file path, always validate them with a regex. The regex will also remove tainting from the value. See man perlfaq for more infos about tainting. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Sun Oct 07 11:22:51 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 46025 invoked by uid 500); 7 Oct 2001 11:22:50 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 46014 invoked from network); 7 Oct 2001 11:22:50 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "alan milligan" <raymond76@example.com> Cc: <raymond76@example.com> References: <raymond76@example.com> Subject: Re: Embperl and globals (was: inheriting from DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset) Date: Sun, 7 Oct 2001 13:24:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > I do have another question regarding Embperl scoping though. I was using > the Perl888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Module directive in my Apache config, expecting that any > interpreter would get any global symbols defined in the module. Yes, that exceptation is right > However, > these appear to be unavailable within my Embperl container. Do all global > symbols not get sucked in by default? > Could you give a small example how do you define your globals and how do you try to access them from within your Embperl page ? Gerald --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Mon Oct 08 05:31:05 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 59627 invoked by uid 500); 8 Oct 2001 05:31:05 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 59616 invoked from network); 8 Oct 2001 05:31:05 -0000 X-Originating-IP: [83.161.120.155] From: "alan milligan" <raymond76@example.com> To: raymond76@example.com Cc: raymond76@example.com Bcc: Subject: Re: Embperl and globals (was: inheriting from DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset) Date: Mon, 08 Oct 2001 05:30:50 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: <raymond76@example.com> X-OriginalArrivalTime: 08 Oct 2001 05:30:50.0280 (UTC) FILETIME=[63F81A80:01C14FBA] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Sorry Gerald, I discovered a type was causing me scoping issues. But I am getting some very strange behaviour using session management with 2.0b3. I use File and Semaphore. I have some epl in $DOCUMENT_ROOT/perl/authenticate.epl which sticks a User object into %udat. All the other files in $DOCUMENT_ROOT/perl can access this. However no .epl's in $DOCUMENT_ROOT/public have this. They get a competely new session object assigned. Even when I explicitly call HTML888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mbperl888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Req888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4GetSession/RefreshSession, I cannot get the old session back, a new one is instantiated. I was expecting that the general session stuff uses a cookie and should thus be independent of file path. File path being specific to %mdat as one expects. Am I missing something? > > > > I do have another question regarding Embperl scoping though. I was >using > > the Perl888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Module directive in my Apache config, expecting that any > > interpreter would get any global symbols defined in the module. > >Yes, that exceptation is right > > > However, > > these appear to be unavailable within my Embperl container. Do all >global > > symbols not get sucked in by default? > > > >Could you give a small example how do you define your globals and how do >you >try to access them from within your Embperl page ? > >Gerald > > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Mon Oct 08 05:55:02 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 75584 invoked by uid 500); 8 Oct 2001 05:55:02 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 75571 invoked from network); 8 Oct 2001 05:55:01 -0000 Date: Mon, 8 Oct 2001 15:55:10 +1000 To: raymond76@example.com Subject: Re: Embperl and globals (was: inheriting from DBIx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Recordset) Message-ID: <raymond76@example.com> Mail-Followup-To: gus, raymond76@example.com References: <raymond76@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <raymond76@example.com> User-Agent: Mutt/1.3.20i From: Angus Lees <raymond76@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Mon, Oct 08, 2001 at 05:30:50AM +0000, alan milligan wrote: > But I am getting some very strange behaviour using session management with > 2.0b3. I use File and Semaphore. > > I have some epl in $DOCUMENT_ROOT/perl/authenticate.epl which sticks a User > object into %udat. All the other files in $DOCUMENT_ROOT/perl can access > this. However no .epl's in $DOCUMENT_ROOT/public have this. They get a > competely new session object assigned. > > Even when I explicitly call HTML888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4mbperl888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Req888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4GetSession/RefreshSession, I > > cannot get the old session back, a new one is instantiated. > > I was expecting that the general session stuff uses a cookie and should thus > > be independent of file path. File path being specific to %mdat as one > expects. > > Am I missing something? try setting EMBPERL_COOKIE_PATH to / -- - Gus --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Mon Oct 08 13:44:20 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 60873 invoked by uid 500); 8 Oct 2001 13:44:19 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 60840 invoked from network); 8 Oct 2001 13:44:18 -0000 Date: Mon, 8 Oct 2001 14:44:12 +0100 From: Chris Allen <raymond76@example.com> To: Gerald Richter <raymond76@example.com> Cc: raymond76@example.com Subject: Re: Setup of CGI.pm failed Message-ID: <raymond76@example.com> References: <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <raymond76@example.com>; from raymond76@example.com on Thu, Oct 04, 2001 at 09:07:40PM +0200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, Oct 04, 2001 at 09:07:40PM +0200, Gerald Richter wrote: > > Could you print out $@ directly after the > > eval { $cgi = new CGI } ; > When CGI fails, does it contain any usefull information ? It's empty. Always. > > In past sometimes it has helped to upgrade CGI.pm in such cases, but it > could also simply the case that people press "Abort" during the upload or > make a double click on the submit button which also aborts the first > request. I have tried with the latest version of CGI.pm - no improvement. Also the user often (but not always) gets a '500 server error' message. This happens at least 20 times a day on our site, so I don't think it is the user pressing stop. Other things that may be useful: - This happens in a script that is called as a CGI, not through mod perl. I have not seen it happen through mod perl. Unfortunately a bug in mod proxy means that I have to run it as a CGI. - It is an upload script that handles large files - usually over 1MB - I also use CGI888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ookie in this script. - --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Tue Oct 09 18:42:46 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 35331 invoked by uid 500); 9 Oct 2001 18:42:46 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 35312 invoked from network); 9 Oct 2001 18:42:45 -0000 Message-ID: <raymond76@example.com> From: "Carter, Pamela A." <raymond76@example.com> To: "'Luiz Fernando B. Ribeiro'" <raymond76@example.com> Subject: Session Variables in Perl Date: Tue, 9 Oct 2001 13:35:52 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N another question: I have declared a session variable in preceeding ASP pages. How do I = call the session variable in Perl? FYI - It also needs to be in Currencyformat -----Original Message----- From: Luiz Fernando B. Ribeiro [mailto:raymond76@example.com] Sent: Thursday, October 04, 2001 12:34 PM To: Carter, Pamela A. Subject: Re: Formatting Variables in Perl Hi Pamela, Try this: $value =3D 200; $value_ok =3D sprintf("%.2f", $value); print "R\$ $value_ok"; # gives R$ 200.00 Resposta a sua mensagem de quinta-feira, 4 de outubro de 2001: CPA> I am passing a variable that needs to be in currency format (with = two CPA> decimal places). It passes as a whole number with no decimal. = How can I CPA> format this?=20 CPA> = --------------------------------------------------------------------- CPA> To unsubscribe, e-mail: raymond76@example.com CPA> For additional commands, e-mail: raymond76@example.com Sem mais, Luiz Fernando B. Ribeiro Engenho Solu=E7=F5es para a Internet raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Wed Oct 10 18:39:50 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 65778 invoked by uid 500); 10 Oct 2001 18:39:50 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 65732 invoked from network); 10 Oct 2001 18:39:49 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Chris Allen" <raymond76@example.com> Cc: <raymond76@example.com> References: <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> <raymond76@example.com> Subject: Re: Setup of CGI.pm failed Date: Wed, 10 Oct 2001 20:41:47 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > > When CGI fails, does it contain any usefull information ? > > It's empty. Always. > ok, I just wanted to make sure it didn't get lost, because there was nothing in the Embperl error message. So we have verified that CGI.pm really doesn't set's $@ > > Also the user often (but not always) gets a '500 server error' message. > This happens at least 20 times a day on our site, so I don't think it > is the user pressing stop. > They will see the 500 error when you see message in the error log I guess. > > Other things that may be useful: > > - This happens in a script that is called as a CGI, not through mod perl. > I have not seen it happen through mod perl. Unfortunately a bug in mod proxy > means that I have to run it as a CGI. > > - It is an upload script that handles large files - usually over 1MB > > - I also use CGI888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4ookie in this script. > I have currently no idea what is happeing. The only way I see to track this down, is to put logging message inside of CGI.pm itself. I good place to start is the function read_multipart. Put some warns inside to see where it might fail. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Wed Oct 10 18:42:04 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 70358 invoked by uid 500); 10 Oct 2001 18:42:04 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 70343 invoked from network); 10 Oct 2001 18:42:03 -0000 Message-ID: <raymond76@example.com> From: "Gerald Richter" <raymond76@example.com> To: "Carter, Pamela A." <raymond76@example.com>, "'Luiz Fernando B. Ribeiro'" <raymond76@example.com> References: <raymond76@example.com> Subject: Re: Session Variables in Perl Date: Wed, 10 Oct 2001 20:44:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N >I have declared a session variable in preceeding ASP pages. How do I call >the session variable in Perl? > You have a hash called %udat. Everything you store there is preserved as session data. But you have to configure session handling correctly first. See http://perl.apache.org/embperl/Embperl.pod.7.html#Session_handling >FYI - It also needs to be in Currencyformat That doesn't matter Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: raymond76@example.com Voice: 705.809.9573 WWW: http://www.ecos.de Fax: 705.809.9573 ------------------------------------------------------------- -----Original Message----- From: Luiz Fernando B. Ribeiro [mailto:raymond76@example.com] Sent: Thursday, October 04, 2001 12:34 PM To: Carter, Pamela A. Subject: Re: Formatting Variables in Perl Hi Pamela, Try this: $value = 200; $value_ok = sprintf("%.2f", $value); print "R\$ $value_ok"; # gives R$ 200.00 Resposta a sua mensagem de quinta-feira, 4 de outubro de 2001: CPA> I am passing a variable that needs to be in currency format (with two CPA> decimal places). It passes as a whole number with no decimal. How can I CPA> format this? CPA> --------------------------------------------------------------------- CPA> To unsubscribe, e-mail: raymond76@example.com CPA> For additional commands, e-mail: raymond76@example.com Sem mais, Luiz Fernando B. Ribeiro Engenho Soluções para a Internet raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: raymond76@example.com For additional commands, e-mail: raymond76@example.com From raymond76@example.com Wed Oct 10 19:54:33 2001 Return-Path: <raymond76@example.com> Delivered-To: raymond76@example.com Received: (qmail 93419 invoked by uid 500); 10 Oct 2001 19:54:33 -0000 Mailing-List: contact raymond76@example.com; run by ezmlm Precedence: bulk list-help: <mailto:raymond76@example.com> list-unsubscribe: <mailto:raymond76@example.com> list-post: <mailto:raymond76@example.com> Delivered-To: mailing list raymond76@example.com Received: (qmail 93401 invoked from network); 10 Oct 2001 19:54:32 -0000 Message-ID: <raymond76@example.com> From: Eric Lowry <raymond76@example.com> To: "'raymond76@example.com'" <raymond76@example.com> Subject: Session Management: An Alternate Approach Date: Wed, 10 Oct 2001 12:50:38 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello fellow Embperl users! Recently, I have noticed several threads of discussion around session management and I want to present an alternate mechanism for managing a user's session. I have built a simple alternative to using cookies or URL re-writing that seems SO simple that there must be something wrong with it. I got the idea while reading about AliasMatch in the apache documentation. Although it might not have been intended to be used this way, AliasMatch allows you to embed information within the page's URL like this: In httpd.conf: ... Alias /mysite /www/mysite/html AliasMatch ^/mysite-sess/[^/]+/(.*) /www/mysite/html ... Example URL: http://www.clepsydras.com/mysite-sess/abc123xyz/welcome.epl abc123xyz is arbitrary information, dynamically generated (I use MD5 with a
{'source': 'Apache Software Foundation Public Mail Archives'}