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

2005-11-03 Thread Marcello
x27;t try them out: you'll learn 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 P

Re: Which is better?

2005-10-18 Thread Marcello
mas. Again, his code was: open my $fh, '<', $input_file or die qq(Cannot open "$input_file": $!); What am I missing here? I hope this 3-lines script will clarify the issue: my $var = "world"; print qq(Hallo "$var"\n); print qq(Hallo $var \n); HTH [snip]

Re: Space problem

2005-10-14 Thread Marcello
he program to ignore the space.. Are you sure you are calling the script using "GU 1" ? If you don't use quotes your program will see GU and 1 as separate arguments. This is because the shell treats space as argument separator. I thought by putting x on the line ($m

Re: fork + objects + logging

2005-10-12 Thread Marcello
. In addition, you need to use ; in every module or script where you use that '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://www.spinsoft.it

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
rror below The 'hour' parameter (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 R

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( ); $sth->bind

Re: parsing columns

2005-08-18 Thread Marcello
y the text file 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 ? Marce

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 > c:\perl\bi

Re: strange if-else problem

2005-02-28 Thread Marcello
"Inside ELSE part"; handle_error($error, [EMAIL PROTECTED], $count); } It prints off the username that has been changed 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-ma

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

2005-02-09 Thread Marcello
after each print, you can se $| to a non-zero value. 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&q

Re: Problem in reading cookies

2005-02-02 Thread Marcello
& Regards, 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: 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 pr

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: tie DB_File flags

2005-01-26 Thread Marcello
ags = O_RDONLY; tie %$dbm, "DB_File", $dbf, $dbflags, $mode, $DB_HASH; 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 exist

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: hash slice/exists vs. grep benchmark weirdness...

2005-01-26 Thread Marcello
.15user 0.01system 0:09.89elapsed 92%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (0major+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