Re: Authorize.net Error

2009-05-16 Thread JeffHua
sheela b: Hi All, I have shopping cart website integrating with authorize.net for Payment gateway. Authorize.net is working fine in test mode, but in the live mode, i am not able to give any credits to customer. It displays following error message. "The referenced transaction does not meet

Re: perl on windows

2009-05-15 Thread JeffHua
Sharan Basappa: I am not talking about text editors, but GUI IDEs that help compile, run, debug (probably do more I dont know) But Perl is just an old script language, many guys of here don't use an IDE. If you really want one, the wellknown perl IDE is still activestate's, see: http://www

Re: perl on windows

2009-05-15 Thread JeffHua
PM, JeffHua wrote: Sharan Basappa: Hi, I would like to know install perl on my windows laptop. Any suggestions on which one to use. Also, my work requires some special modules like algorithm. How do I handle that? Hi, try ActivePerl: www.activestate.com/activeperl/ or Cygwin a Linux-like

Re: perl on windows

2009-05-15 Thread JeffHua
Sharan Basappa: Hi, I would like to know install perl on my windows laptop. Any suggestions on which one to use. Also, my work requires some special modules like algorithm. How do I handle that? Hi, try ActivePerl: www.activestate.com/activeperl/ or Cygwin a Linux-like environment for Wind

Re: Emptying several arrays at once

2007-08-15 Thread JeffHua
In a message dated 2007-8-16 0:03:51 中国标准时间, [EMAIL PROTECTED] writes: Hey, please don't shout! YOU TMD SHOUT LIKE A DOG!ZAZHONG! ** Get a sneak peek of the all-new AOL at http://discover.aol.com/memed/aolcom30tour

Re: die and exit

2007-08-15 Thread JeffHua
In a message dated 2007-8-15 23:24:44 中国标准时间, [EMAIL PROTECTED] writes: In addition to all the other replies, and if die() in mod_perl is your actual concern, please read http://perl.apache.org/docs/1.0/guide/porting.html#die___and_mod_perl exit(), OTOH, is a mod_perl issue that needs to

Re: Read only part of file

2007-08-15 Thread JeffHua
In a message dated 2007-8-15 23:39:42 中国标准时间, [EMAIL PROTECTED] writes: open (FH, “file"); @FH = ; foreach $line(@FH){ processing linebyline } close FH; However, I only need certain part of file only to be read (let say beginning 20 lines). Yes perl's builtin variable '$.' stores the lin

Re: Emptying several arrays at once

2007-08-15 Thread JeffHua
In a message dated 2007-8-15 22:08:56 中国标准时间, [EMAIL PROTECTED] writes: Not if you turn off strict like the poster suggested. Then symrefs are allowed, and you can access the an array by pretending that a string containing the name of the array is an array reference. This is not, however,

Re: die and exit

2007-08-13 Thread JeffHua
Thank you.That explained what I want to know. --Jeff Pang ** Get a sneak peek of the all-new AOL at http://discover.aol.com/memed/aolcom30tour

Re: Including code from a file into the main script if the file exists

2006-09-16 Thread jeffhua
Hi, The simple way to resolve your problem is to add a '1' at the end of "/opt/user.rules". But you must know,that logic pieces in the "/opt/user.rules" CAN'T work at all for your main.pl. You can define a package variable or a subroutine in the required file,then the main script can use that

Re: removing characters

2006-09-14 Thread jeffhua
Hi, You can do it like: $var =~ s/\[|\]//g; or $var =~ s/[\[\]]//g; -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Fri, 15 Sep 2006 1:54 PM Subject: removing characters Hi, I have a certain variables of emplyee number which comes in the format of [a

Re: sprintf and printf in Perl

2006-09-14 Thread jeffhua
Hello, The simple difference is,'sprintf' format the strings and pass the result to a variable. $ perl -e 'my $var=sprintf "%30s\n","hello,world";print $var' hello,world While 'printf' print the result directly to screen. $ perl -e 'printf "%30s\n","hello,world"'

Re: about map usage

2006-09-13 Thread jeffhua
Hello, I'd like to give you a good article for the wonderful introduce for perl's map,sort and grep.See here: http://web.archive.org/web/20041123005900/http://www.raycosoft.com/rayco/support/perl_tutor.html Hope it's useful. -jeff -Original Message- From: [EMAIL PROTECTED] To: begi

Re: Print output of Table on browser as it is being created

2006-09-12 Thread jeffhua
Hi, You just need to print the table lines in a loop when you're querying the datas from db. for example,maybe you can write it like: print ""; while(my $sql_line_ref = $sth->fetchrow_hashref) { print qq {$sql_line_ref->{key1} $sql_line_ref->{key2}

Re: Sockets

2006-09-09 Thread jeffhua
Lincoln Stein's great book of 'Network Programming with Perl' is very good for your purpose. -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Sat, 9 Sep 2006 7:56 PM Subject: Sockets Does anyone know any good links on networking with perl or on sockets?

Re: Running the same perl script on Win32 and Unix

2006-09-07 Thread jeffhua
  I don't want to maintain two scripts, and it seems I cann't do something like this on the top of the script:  if ($platform eq 'WINDOWS') {    use Win32::Process;  }    Anyone can help?  Hi,it seems that you want to put them in BEGIN block.ie, BEGIN { use vars qw/$OS/; $OS = $^O eq '

Re: pipe as an argument

2006-09-05 Thread jeffhua
Don't write it like this.Consider this case: $ARGV[0] ==0; then your statement : my $time_in = $ARGV[0] || ; should be broken. --Jeff Pang -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Wed, 6 Sep 2006 1:58 PM Subject: Re: pipe as an argument On 9/6/06, [EM

Re: pipe as an argument

2006-09-05 Thread jeffhua
HI, Change this line: my $time_in = $ARGV[0]; to: my $time_in = ; --Jeff Pang -Original Message- From: [EMAIL PROTECTED] To: beginners@perl.org Sent: Wed, 6 Sep 2006 12:54 PM Subject: pipe as an argument All,    How do accept pipe as an valid argument in perl, for example:    echo 1234