BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
You'll need to have a wide terminal to see the effect I am seeing.
Mine is set to 1000 chars wide with tab stops the typical every 8 characters, but when I execute the following code, columns 13, 14 & 15 (char offset 98+) are displayed as if the tab stops at the first of those three positions was every 4 chars. Is this Perl's doing or a peculiarity of my terminal?
print join ' ', ('123456789') x 20; print join "\t", ('xx') x 50;; 123456789 123456789 123456789 123456789 123456789 123456789 123456789 xx xx xx xx xx xx xx xx xx 123456789 123456789 123456789 123456789 123456789 123456789 xx xx xx xx xx xx xx xx xx ...........................^...^...^
Perhaps even weirder, the pattern of 3 grouping occurs recurrently at intervals across the screen, but the intervals are not regular. Then next occurance is at 39, 40 & 41 (char offset 297+). The one after at 65, 66 & 67 (497+).
I keep looking for a pattern in either the tab stop numbers or char offset numbers, but if there is one, it's eluding me?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl or my terminal?
by shmem (Chancellor) on Jun 24, 2007 at 05:41 UTC | |
by BrowserUk (Patriarch) on Jun 24, 2007 at 06:10 UTC | |
by shmem (Chancellor) on Jun 24, 2007 at 07:42 UTC | |
by BrowserUk (Patriarch) on Jun 24, 2007 at 08:01 UTC | |
by BrowserUk (Patriarch) on Jun 24, 2007 at 07:45 UTC |