The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.perl.misc
From: "Ela" <e...@yantai.org>
Date: Fri, 16 May 2008 22:59:10 +0800
Local: Fri, May 16 2008 10:59 am
Subject: Re: write 10 files
> $i = $size/10000; Unless $size is always evenly divisible by 10000 then $i will not be > print OFP$i "something"; #0-10k, 10-20k, .... 90-100k... the number you expect it to be (use $i = int($size/10000); instead) and it will never print into one of the file handles you have open. (for example, $size = 11,000 then $i = 11000/10000 will equal 1.1, not the "1" you expect.) Bill H Yes, u a right. and I've already added int ($size/10000) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||