[Buffalo-pm] Determining the size of a filehandle
Eye, Kevin
eye at buffalo.edu
Tue Nov 17 08:39:18 PST 2009
Or maybe something like this?
http://search.cpan.org/~clkao/IO-Statistics-0.12/lib/IO/Statistics.pm
Never used it before, BTW.
- Kevin
On 11/17/09 11:34 AM, "Joshua Johnson" <joshpauljohnson at gmail.com> wrote:
> I've never tried this on a filehandle but it looks like you can stat it:
>
> http://www.rocketaware.com/perl/perlfunc/stat.htm
>
> On Tue, Nov 17, 2009 at 11:12 AM, Daniel Magnuszewski
> <dmagnuszewski at yahoo.com> wrote:
>> I have a filehandle that is being written to in memory (not to the file on
>> disk), and I need to determine the size of the data that it points to. What's
>> the best way to find the size of the filehandle?
>>
>> -Dan
>>
>> _______________________________________________
>> Buffalo Perl Mongers Homepage
>> http://buffalo.pm.org
>>
>> Buffalo-pm mailing list
>> Buffalo-pm at pm.org
>> http://mail.pm.org/mailman/listinfo/buffalo-pm
>>
> _______________________________________________
> Buffalo Perl Mongers Homepage
> http://buffalo.pm.org
>
> Buffalo-pm mailing list
> Buffalo-pm at pm.org
> http://mail.pm.org/mailman/listinfo/buffalo-pm
--
Kevin Eye
Web Applications Developer
University Communications
University at Buffalo
330 Crofts Hall
Buffalo, NY 14260
eye at buffalo.edu
phone (716) 645-4579
More information about the Buffalo-pm
mailing list