Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
//Anders Andersson### Give the number in bytes that should be created: print ("Number in bytes:\n"); ### Read in the choice. $choice = <STDIN>; chomp ($choice); ### Divide the choice. $divide = $choice / $choice; @x = $divide..$choice; foreach $x (@x) { open(LOG, ">> file.txt"); print LOG "x"; close LOG; }
Edited by BazB added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Slow file creator
by exussum0 (Vicar) on Feb 07, 2004 at 22:50 UTC | |
by arden (Curate) on Feb 07, 2004 at 23:23 UTC | |
|
Re: Slow file creator
by tachyon (Chancellor) on Feb 07, 2004 at 23:52 UTC | |
|
Re: Slow file creator
by guha (Priest) on Feb 07, 2004 at 23:45 UTC | |
|
Re: Slow file creator
by Berik (Sexton) on Feb 07, 2004 at 23:16 UTC | |
by exussum0 (Vicar) on Feb 07, 2004 at 23:40 UTC | |
by Berik (Sexton) on Feb 08, 2004 at 00:43 UTC | |
|
Re: Slow file creator
by flyingmoose (Priest) on Feb 07, 2004 at 23:50 UTC |