in reply to Re: Perl or my terminal?
in thread Perl or my terminal?
Which is really weird, cos I don't see the same effect when I run the following D code:
import std.file; int main( char[][] args ) { for( int i=0; i<99; i++ ) printf( "123456789 " ); printf( "\n" ); for( int i=0; i<125; i++ ) printf( "xx\t" ); printf( "\n" ); return 0; }
Nor the equivalent C code:
#include <stdlib.h> int main( int argc, char **argv ) { int i; for( i=0; i<99; i++ ) printf( "123456789 " ); printf( "\n" ); for( i=0; i<125; i++ ) printf( "xx\t" ); printf( "\n" ); return 0; }
Nor this version of the perl code:
for( $i=0; $i<99; $i++ ){ printf( "123456789 " ) } printf( "\n" ); for( $i=0; $i<125; $i++ ){ printf( "xx\t" ) } printf( "\n" );;
It only seems to happen when I use:
print join ' ', ('123456789') x 99; print join "\t", ('xx') x 125;;
Which makes about as much sense as a chocolate teapot?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl or my terminal?
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 |