i.e. formatted printing to a string rather than a file or screen
Can the output of a PERL printF statement be directed to a string?
Yes but it is not the same function to do it, STDOUT is best not to be messed with, so look for the function that let you pass an output pointer (string, not handle) as its first argument. I usually confuse the stuff in Perl and C, but I think it is sprintf()
If you just want a wholesale redirection of the entire program output pipe it in eval().
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment