in reply to Re: IO::File handle and printf
in thread IO::File handle and printf
But I get:#!/usr/bin/perl use IO::File; $stuff="0.4312342134234234"; $morestuff="0.2432134234342342"; $fh=IO::File->new(">/tmp/foo2.txt"); $fh=sprintf($fh <<"__EOFOO__", $stuff, $morestuff); Some stuff: %.4f Some more stuff %.4f __EOFOO__
Missing comma after first argument to sprintf function at test.pl line + 12, near "$morestuff)" (Might be a runaway multi-line << string starting on line 9) Execution of test.pl aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: IO::File handle and printf
by Anonymous Monk on Nov 03, 2010 at 14:02 UTC | |
|
Re^3: IO::File handle and printf
by rakzer (Novice) on Nov 03, 2010 at 14:05 UTC | |
by ikegami (Patriarch) on Nov 03, 2010 at 20:45 UTC | |
by Anonymous Monk on Nov 03, 2010 at 14:13 UTC |