Don't ask to ask, just ask | |
PerlMonks |
Re^3: Printing text from scrolled window?by GrandFather (Saint) |
on Jul 28, 2006 at 18:55 UTC ( [id://564422]=note: print w/replies, xml ) | Need Help?? |
See the reply to Fletch. BTW, why introduce a variable, or even the named sub come to that?
does what is required without the sub or variable, but doesn't show OP how to get the lines into an array and doesn't illustrate the technique required to use a named sub for the command handler. It may well be that OP doesn't require instruction in such things and possibly no-one who comes after will benefit, but it wasn't much effort to illustrate those techniques and someone may learn from it. DWIM is Perl's answer to Gödel
In Section
Seekers of Perl Wisdom
|
|