hi.
i'm trying to write context-sensitive subroutines using wantarray (or maybe Want). however when i call a subroutine from printf it fails like in
sub t {return wantarray}
printf "returns %i\n", t() ##returns 1
printf "returns %i\n", scalar t() ##returns 0
isn't there a way to pass the info of how many arguments printf expects to the subroutine without the explicit scalar?
i hope my question is understandable,
thanks for any help
tim