On Mon, Oct 19, 2009 at 9:12 AM, Shawn H Corey <shawnhco...@gmail.com> wrote:
> Taylor, Andrew (ASPIRE) wrote:
>> Is there a 2GB filesize limit for perl? - we're running on verion 5.6.
>
> There is no file limit in Perl.  There is no memory limit in Perl.  Such
> limits are because of:
>
> * the hardware,
> * the OS,
> * the compiler that complied Perl

And the options to the compiler at compile time.

Type perl -V to see if your version of perl has large file support.
For example, my install of perl under Ubuntu shows this:

  Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS
                        USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API


If your perl was not compiled with large file support, then one
workaround would be to wrap the perl script in a bash script.
Assuming the perl script writes to stdout, you could do something like
this:

for i in $list_of_files ; do
  perl_script $i
done > large.outfile

Good luck and let us know how things go.

Regards,
- Robert

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to