Re: input validation and persistency module for (mod_perl) web apps?

2005-11-03 Thread Marcello
a lot about the problem(s) you are trying to solve. [snip rest of message] HTH -- Marcello Romani Developer Spin s.r.l. Reggio Emilia http://www.spinsoft.it -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org

Re: Which is better?

2005-10-18 Thread Marcello
hope this 3-lines script will clarify the issue: my $var = world; print qq(Hallo $var\n); print qq(Hallo $var \n); HTH [snip] -- Marcello Romani Developer Spin s.r.l. Reggio Emilia http://www.spinsoft.it -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Space problem

2005-10-14 Thread Marcello
on the line ($msg =~ s/\/' /igx;) will ignore the space but it doesn't Your suggestion/help are highly appreciated... Help me please -- Marcello Romani Developer Spin s.r.l. Reggio Emilia http://www.spinsoft.it -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: fork + objects + logging

2005-10-12 Thread Marcello
that you use. In addition, you need to use module_name; in every module or script where you use that module_name's exported functions or class medthods. If you don't include the 'use' directive you should get compilation errors. -- Marcello Romani Developer Spin s.r.l. Reggio Emilia http

Re: mysql through dbi problem

2005-10-10 Thread Marcello
rutledge.50 ha scritto: Hi, thanks Marcello :) I finally figured it out by painfully following 10 sets of data through the process. First, this was causing two problems: #now cycle through result set in next query foreach $myhsid (@hsid) { $myhport = pop(@hport

Re: datetime odd problem

2005-10-06 Thread Marcello
(undef) to DateTime::new was an 'undef', which is not one of the allowed types: scalar The module DateTime is the exaclty the same. Any idea on what might be going wrong? I think you should show us where those $fields come from. -- Marcello Romani Developer Spin s.r.l. Reggio Emilia http

Re: mysql through dbi problem

2005-10-05 Thread Marcello
linc ha scritto: Howdy, I'm having some serious trouble. I'm running a query and getting the data, but having problems using that data in the next query. Thus: #first query $sth = $dbh-prepare ( select distinct hmac, hport, hsid from netdata_history ); $sth-execute( );

Re: parsing columns

2005-08-18 Thread Marcello
is written, I have no control over that... Regards, -- Offer Kaye How do you logically determine that l2dat4 in line 2 is column 4 and not column 2?? Manav Just a thought: because l2dat4 starting column is greater than column 4 header starting column ? Marcello -- To unsubscribe, e-mail

Re: Foreach Code Issue

2005-03-02 Thread Marcello
Wilson, Josh --- Systems Analyst --- GO ha scritto: All, I'm trying to determine what is wrong with this script. Here is what I'm trying to do: 1.) Export the output of the following command to a file located at c:\perl\bin\log\accessreport.log Global Domain Admins ARFW

Re: strange if-else problem

2005-02-28 Thread Marcello
and its password. Then the handle_error function is called. Anyone got any ideas? Cheers in advance, Graeme :) Just my two cents. Marcello -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: while(1){print a; sleep 1;}

2005-02-09 Thread Marcello
. I attached a sample script to show this. Marcello use strict; use warnings; $|++; while(1) { print a; # with this line we don't get any output unless we put a $|++ beforehand #print a\n; # with this line every a gets printed regardless of $| value (0

Re: Safety of storing pricing information in a CGI::Session

2005-02-02 Thread Marcello
Michael Kraus ha scritto: G'day all... I'm currently using CGI::Session as part of an online ordering system. I've been passing database primary keys back and forth between the client and server, with all values double checked upon being received at the server. The only problem is that I need to

Re: Problem in reading cookies

2005-02-02 Thread Marcello
, Mallik. You should supply more information to help somebody help you. Marcello -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: using namespace

2005-01-27 Thread Marcello
::someFunction1() } 1; -END Thanks Ram Marcello -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: hash slice/exists vs. grep benchmark weirdness...

2005-01-26 Thread Marcello
+1015minor)pagefaults 0swaps [EMAIL PROTECTED] time perl grep-bench.pl 67.52user 0.01system 1:12.97elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+1015minor)pagefaults 0swaps /log The slice version took about 10 seconds, the grep one took more than 1 minute. Marcello

Re: How to read this array?

2005-01-26 Thread Marcello
Jerry Preston ha scritto: I have this array and I am trying to figure out how to read $id in it. Any ideas? @history = ( { program = 'racer', version = '0.45', input = { '/home/' = undef, }, input_contents = ' $name= \'Jerry\'; $id = \'035\';

Re: tie DB_File flags

2005-01-26 Thread Marcello
, $dbflags, $mode, $DB_HASH; /code Marcello This is caused by using the variable for the flags and if I replace that with the actual string (no quotes) it works fine, so it's happy with $dbf and $mode. I'm using 5.8.6, but the problem also exists with 5.8.5 at least. Can anyone suggest how I can