http://www.perlmonks.org?node_id=106876


in reply to compilation errors???

<Update>
Okay, guess I overstepped my bounds... that last comment was out of line. My apologies.

I wasnt aware that the last statement in a block wasnt needed... ya learn something new everyday. ++cLive!

Totally missed the scalar part (I should have known that).
</update>

First observation: All of your arrays (and other variables, for that matter) need to be declared local using the 'my' keyword (i.e: my @pages; etc) if you are going to use strict.

The second observation: for ($i=0; $i <= (@filenames-1); $i++) should probably read for ($i=0; $i <= ($#filenames-1); $i++)

The third observation:
while(<PAGES>) { push(@pages, $_) }

should read:
while(<PAGES>) { push(@pages, $_); #semi colon added }


Not to sound callous, but try debugging your code before something is assumed to have gone wrong with the module... your errors may be causing something wierd to happen during compilation.

_________________________________________
E-Bitch
Tempora Mutantur Nos et Mutamur in Illis
"The Times are Changed Even as We are Changed in Them"