Hi All
Further to earlier posts about "identifier too long", I ran into the same problem when
doing something like:
$Response->Include( 'some/really/long/name/here/something/like/this.asp' )
Perl's limit on function name size was exceeded because the file is compiled to a
namespace/function based on the filename.
I did a hacky modification to ASP.pm, copied in below as a diff. (I must learn how to
use patch someday...)
All it does is trim back $id and regenerate $subid iff the $subid is too long. Not
fancy, but it works. Hopefully it isn't going to cause problems
down the line!
Ellers
1331a1333,1341
>
> # Ellers 02APR29 - with long includes can exceed perl's inbuilt limit on
>function names
> if ( length( $subid ) > 245 )
> {
> my $n = length( $subid ) - 245;
> $id = substr( $id, 0, length($id) - $n );
> # print STDERR "Adjusted ID: $id\n";
> $subid =
>$self->{GlobalASA}{'package'}."::$id".'xINCx'.$self->{compile_checksum};
> }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]