Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Printing text from scrolled window?

by Fletch (Bishop)
on Jul 28, 2006 at 19:11 UTC ( [id://564430]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Printing text from scrolled window?
in thread Printing text from scrolled window?

The worry is that they might get the wrong idea from it: I need to print out these lines, so I'll split things into an array and then use join when I print because I saw that code on PerlMonks so it must be right.</cargocult>

I actually think your above answer is better because it does directly answer the question. You could always supplement it with asides about "to get an array of the lines use split like ...", or "if you're going to do complex processing before printing the contents you might want to use \&process_and_print and move the actual work to sub process_and_print { ... }".

But that's just me.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found