Help for this page

Select Code to Download


  1. or download this
        my $error = '';
        if ( $toggle !~ /^\d+$/ or $toggle == 0 ) {
    ...
            $error .= "The second argument to &alternate must be an array 
    +reference.";
        }
        die $error if $error;
    
  2. or download this
    die "Toggle not greater than 0" unless $toggle > 0;