ellem has asked for the wisdom of the Perl Monks concerning the following question:
You'll notice that I have the newline on a separate line from the orginal print. I tried several versions of getting those two print lines on one line but all failed. Is this the way to do newlines with a varying variable?#! /usr/local/bin/perl use warnings ; use strict ; my $one = 1 ; until ($one == 100000) { print $one++ ; print "\n" ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A better way to print
by cjf (Parson) on Mar 18, 2002 at 15:09 UTC | |
by ellem (Hermit) on Mar 18, 2002 at 15:17 UTC | |
|
Re: A better way to print
by tachyon (Chancellor) on Mar 18, 2002 at 15:25 UTC | |
|
Re: A better way to print
by buckaduck (Chaplain) on Mar 18, 2002 at 16:28 UTC | |
|
Re: A better way to print
by YuckFoo (Abbot) on Mar 18, 2002 at 15:56 UTC | |
by tachyon (Chancellor) on Mar 18, 2002 at 16:21 UTC | |
|
Re: A better way to print
by Rex(Wrecks) (Curate) on Mar 18, 2002 at 18:02 UTC | |
|
Re: A better way to print
by grummerX (Pilgrim) on Mar 18, 2002 at 18:51 UTC | |
|
Re: A better way to print
by Silicon Cactus (Scribe) on Mar 18, 2002 at 21:30 UTC | |
by Anonymous Monk on Mar 18, 2002 at 23:57 UTC | |
by Silicon Cactus (Scribe) on Mar 19, 2002 at 16:43 UTC | |
by jeffa (Bishop) on Mar 19, 2002 at 17:08 UTC |