On Sep 24, 2005, at 10:59 AM, Bill Stephenson wrote:
I'm trying to understand how to convert my CGI scripts to use modules.
I worked this problem out. Reading the docs and this page
(http://www.perl.com/pub/a/2001/06/05/cgi.html) for CGI::Application
has helped me better understand how to us
I'm trying to understand how to convert my CGI scripts to use modules.
My first step is to create a "SetUp" module where I can store common
stuff. I put together a module and script to test it with but it
doesn't work. It doesn't display the first (default) and last options
correctly and I can'
> "Bill" == Bill Stephenson <[EMAIL PROTECTED]> writes:
Bill> Wouldn't it be more efficient for the server to run a small script
Bill> that contains only the set-up and sub-routines needed to process a
Bill> single "run-mode" instead of loading all the data needed to process
Bill> all the "run
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...
# .