zentara has asked for the wisdom of the Perl Monks concerning the following question:
In a Tk program, I'm sending some text to a label. The long statement might be something like: (The following is all one line, the pre tags are on purpose :-) ).
Now if I break this, the hidden newlines will be picked up by the Tk::Label widget, which I don't want.$game{'board'}{'stat'} = "$playerin submits $game{'board'}{'proposedwo +rduser'} $game{'board'}{'proposedscore'} points";
So is it possible to put some kind of slash at the break points to indicate to ignore the newline? It really isn't a major problem for me, I was just wondering if there is a method which dosn't involve too much extra work.
Edit by tye, replace PRE with CODE
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: breaking long code lines
by Aristotle (Chancellor) on Jul 28, 2004 at 21:36 UTC | |
|
Re: breaking long code lines
by grinder (Bishop) on Jul 28, 2004 at 22:15 UTC | |
|
Re: breaking long code lines
by davido (Cardinal) on Jul 28, 2004 at 23:22 UTC | |
|
Re: breaking long code lines
by itub (Priest) on Jul 28, 2004 at 21:40 UTC | |
|
Re: breaking long code lines
by CountZero (Bishop) on Jul 28, 2004 at 21:36 UTC |