Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: file creating AND writing error

by Tanalis (Curate)
on Jun 14, 2004 at 09:06 UTC ( [id://366448]=note: print w/replies, xml ) Need Help??


in reply to file creating AND writing error

You're not telling Perl to output data to the file you've opened.

Try changing

printf "%3s", $ser;
to
printf CREATE "%3s", $ser;
Notice the difference: the second printf statement makes use of the CREATE filehandle you've opened your file under. This instructs Perl to redirect printf's output there.

Hope that helps,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://366448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-03-19 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found