in reply to Re^2: IO::File handle and printf
in thread IO::File handle and printf

The sprintf can't work, sorry, that slipped in. What I meant to show was:
$fh=IO::File->new(">/tmp/foo2.txt"); printf($fh <<"__EOFOO__", $stuff, $morestuff); Some stuff: %.4f Some more stuff %.4f __EOFOO__
As someone else pointed out, {} arround $fh will work.

Replies are listed 'Best First'.
Re^4: IO::File handle and printf
by ikegami (Patriarch) on Nov 03, 2010 at 20:45 UTC
    Works fine in 5.10 and 5.12. Maybe your version misinterprets << as a shift operator in that situation?
Re^4: IO::File handle and printf
by Anonymous Monk on Nov 03, 2010 at 14:13 UTC
    What I meant to show was: ...
    And what is the problem with that?

    Works fine here, with various versions of Perl.