I found this construct in the Perl Cookbook:
$Current_Screen = param(".State") || "Default"; I thought it was really cool because if the value of param(".State") comes back undefined, the $Current_Screen variable gets set to "Default". So the other day I wanted to do something similar: @somearray = @array1 || @array2; ... hoping that if @array1 was empty, @somearray would get the contents of @array2. But it doesn't work -- @somearray gets (1). Is what I'm trying to do possible using a single command? Or is an if-then-else the only way to do it? TIA. - Bryan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>