Re: Perl/DBI

2007-06-24 Thread Tyler Gee
On 6/24/07, Shawn Hinchy <[EMAIL PROTECTED]> wrote: Quoting Tyler Gee <[EMAIL PROTECTED]>: > On 6/24/07, Shawn Hinchy <[EMAIL PROTECTED]> wrote: >> >> Hello all, >> >> I am getting to the point where I need to start thinking about doing >&

Re: Perl/DBI

2007-06-24 Thread Tyler Gee
On 6/24/07, Shawn Hinchy <[EMAIL PROTECTED]> wrote: Hello all, I am getting to the point where I need to start thinking about doing pagination for search results. I did some searches and it looks like there are some pagination modules, but I am not quite interested in going that route yet. I

Re: Usage of ftp or sftp in perl as a shell commands

2007-02-12 Thread Tyler Gee
On 2/12/07, Bhavirisetty, Gangadhara (TCS) <[EMAIL PROTECTED]> wrote: Hi, I'm working on HP-UX 11 and somehow ftp is not working but 'sftp' is working, so I'm trying to use SFTP commands as shell commands within Perl script to transfer a file. Can someone please suggest how can I accomplish and

Re: A Few Questions

2007-01-23 Thread Tyler Gee
On 1/23/07, Akbar Ehsan <[EMAIL PROTECTED]> wrote: Hello, I am working on a CGI script. It works fine from the command prompt. I am using Net::SMTP and strict. When I try to pass this script through a web parameter, it ends in "Internal Server Error". Probably a permission error. Your web s

Re: -e question

2006-12-15 Thread Tyler Gee
On 12/15/06, Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: Lou Hernsen wrote: > I use the -e to check to see if a file is present > > if (-e "$Pics/$Game{Page}.jpg") Are you sure this is interpolating correctly? Try if( -e "$Pics/".$Game{Page}.".jpg") > { >} > > Question > I can get

Re: Using DBI in a web context

2006-11-14 Thread Tyler Gee
On 11/14/06, Steve Green <[EMAIL PROTECTED]> wrote: Robert Hicks wrote: > How is it best to catch errors when doing DBI stuff in web applications? > Wrap the insert "code" in an eval statement? Croak or die statements? I > am thinking eval because I can set autocommit to "off" and then do > rollb

Re: Dumping all vars

2006-10-06 Thread Tyler Gee
On 10/5/06, J. Alejandro Ceballos Z. -JOAL- <[EMAIL PROTECTED]> wrote: With the parameters are not problem (in fact I use the followin code for that - $cgi_this is the CGI object -: foreach $str_param ($cgi_this->param) { print "\n $str_param: \t" . $cgi_this->param($str_param); } ) I want t

Re: Dumping all vars

2006-10-03 Thread Tyler Gee
Part of the CGI module: http://search.cpan.org/~lds/CGI.pm-3.25/CGI.pm#FETCHING_THE_NAMES_OF_ALL_THE_PARAMETERS_PASSED_TO_YOUR_SCRIPT%3A On 10/3/06, J. Alejandro Ceballos Z. -JOAL- <[EMAIL PROTECTED]> wrote: The variables created during a cgi, are stored in some kind of hash, like the %ENV env

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Tyler Gee
On 9/1/06, Mary Anderson <[EMAIL PROTECTED]> wrote: >Thanks for the tip. I will try it, even though there is another suggestion ($fieldValue eq '') which works! Something can be defined to be '', so that perhaps defined or exists won't always work. That's why I said it depends on how it was

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Tyler Gee
How have you assigned the variables to $fieldValue. Try 'exists' or 'defined' On 8/31/06, Ashok Varma <[EMAIL PROTECTED]> wrote: Hi, The best approach you go with is use regular expressions, rather that comparing them using relational operators. next unless($fieldValue =~ /(\W|\D)+/); the ab