Reputation: 219
3643 '_compile_all' => <<'END_OF_FUNC',
3644 sub _compile_all {
3645 foreach (@_) {
3646 next if defined(&$_);
3647 $AUTOLOAD = "CGI::$_";
3648 _compile();
3649 }
3650 }
3651 END_OF_FUNC
3652
3653 );
3654 END_OF_AUTOLOAD
3655 ;
How does END_OF_FUNC
and END_OF_AUTOLOAD
work here?
Upvotes: 2
Views: 56
Reputation:
It's part of the nearly-obsolete AutoLoader
mechanism, which tries to save a tiny amount of time by only defining functions when they're first referenced. It's preserved in CGI
primarily for compatibility reasons; there's no good reason to write any new code this way.
Upvotes: 1