"if" Question

2005-09-25 Thread Vance M. Allen
Greetings, I have several places in my code where I need to check if two string variables are empty, if one is empty and the other is not, and if they're both populated. Is there any simpler way to write the code than this?: if($var1 ne "" and $var2 ne "") { # Both are populated... # .

Re: Perl DBI / SQL Question

2005-09-15 Thread Vance M. Allen
I use MySQL 4.1.7 under Fedora Core 3. Vance "Bob Showalter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Vance M. Allen wrote: >> I need to know how to retrieve through Perl DBI a listing of possible >> ENUM elements from a field for processing

File Modification Date

2005-09-14 Thread Vance M. Allen
I'm trying to find out how to determine the date and/or time that a file was created in a simple procedure. I have heard about a few different libraries but the examples I have found haven't been very useful. The basic purpose I want to do is a simple footer provided by a package module throug

Re: Perl DBI / SQL Question

2005-09-14 Thread Vance M. Allen
Sorry if the cross-posting wasn't appropriate, but I need help with this and am not sure if it's more appropriate to post under CGI or DBI since it involves both...I want to be sure that I can get help from the best source. My question is probably a simple answer, but I am not sure what I have t