Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to print two different formats to same file without getting an error?

by MidLifeXis (Monsignor)
on Feb 05, 2014 at 18:32 UTC ( [id://1073585]=note: print w/replies, xml ) Need Help??


in reply to [SOLVED] How to print two different formats to same file without getting an error?

It looks like the format, select, and write command documentation may have something to say about it. You would (untested) need to set the current output handle with select, set the format with $~ (and others - see select), and then write to the filehandle. See also Format Variables for an example of how to set the formats in a (mostly) unintended side-effect free way.

--MidLifeXis

  • Comment on Re: How to print two different formats to same file without getting an error?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found