Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I capture large output in a perl variable

by naChoZ (Curate)
on Mar 23, 2005 at 17:02 UTC ( [id://441829]=note: print w/replies, xml ) Need Help??


in reply to How do I capture large output in a perl variable

You've received more intelligent answers, but in the spirit of TIMTOWTDI:

print "<pre>"; for (split("\n", qx(cat somefile))) { # or other output producing comm +and s/</&lt;/g; print; } print "</pre>";

--
"This alcoholism thing, I think it's just clever propaganda produced by people who want you to buy more bottled water." -- pedestrianwolf

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-23 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found