[Buffalo-pm] Determining the size of a filehandle

Joshua Johnson joshpauljohnson at gmail.com
Tue Nov 17 08:34:41 PST 2009


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
>


More information about the Buffalo-pm mailing list