foo * routine(a, b, c=NULL) char *a; int b; bar_t * c; CODE: RETVAL = croutine( a, b, (c && SvOK(ST(2)) ) ? c : cdefault ); OUTPUT: RETVAL #### my $c = $objref; routine( $a, $b, $c); #### routine( $a, $b); #### my $c; $c = $objref if( false ); routine( $a, $b, $c );
## my $c = $objref; routine( $a, $b, $c); ##
## routine( $a, $b); ##
## my $c; $c = $objref if( false ); routine( $a, $b, $c );