![]() |
C for statement version in Perl
Hi,
I want to do this, in C, this is how to do it for (i=0;i<4000;i++) .....write to a file... ..... is there a function to write 4000 times to a file in perl? Thanks. kel |
Re: C for statement version in Perl
Kelly wrote:
> I want to do this, in C, this is how to do it > > for (i=0;i<4000;i++) > ....write to a file... > .... > > is there a function to write 4000 times to a file > in perl? 1) Exactly the same code will work in Perl, too. 2) The more perlish style would be for my $i (0..3999) { write to a file} jue |
Re: C for statement version in Perl
Kelly wrote:
> is there a function to write 4000 times to a file > in perl? print "write to a file\n" x 4000 Purl Gurl -- Most Entertaining Android In Existence! http://www.purlgurl.net/~callgirl/roberta/roberta.cgi |
| All times are GMT. The time now is 04:34 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.