Help for this page

Select Code to Download


  1. or download this
    sub print_if_true
    {
        my $value = shift;
    ...
    
    print_if_true( 1 );
    print_if_true( 0 );
    
  2. or download this
    sub print_if_true
    {
        my $value = shift;
    ...
            print "Value '$value' is false!\n";
        }
    }
    
  3. or download this
    sub print_if_true
    {
        my $value = shift;
    ...
    
        print "This always prints.\n";
    }