Challenge (for me, at least)

2005-02-18 Thread Tyson Sommer
Is there any way to squeeze the following into one line? (assume using CGI.pm and that my $q = new CGI;): $device = $q->param( "device_name" ); $device = $ARGV[0] if ! $device; $device = "default_device" if ! $device; i.e., first see if we're being used with a CGI form, i

Re: Challenge (for me, at least)

2005-02-18 Thread Ovid
--- Tyson Sommer <[EMAIL PROTECTED]> wrote: > Is there any way to squeeze the following into one line? (assume > using > CGI.pm and that my $q = new CGI;): > > $device = $q->param( "device_name" ); > $device = $ARGV[0] if ! $device; > $device = "default_device" if ! $device; m