Help for this page

Select Code to Download


  1. or download this
        @a = @b || @c;              # this is wrong
        @a = scalar(@b) || @c;      # really meant this
        @a = @b ? @b : @c;          # this works fine, though
    
  2. or download this
           $a = int @b ? \@b : \@c;