> -----Original Message-----
> From: Ken Williams [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 25, 2001 11:06 AM
> To: Geoffrey Young
> Cc: modperl-2.0 dev-list
> Subject: RE: Apache2:: namespace, prerequisite checking and
> CPAN listing
>
[snip]
>
> It should be sufficient to do:
>
> use mod_perl;
> BEGIN { die "horribly" if $mod_perl::VERSION >= 2 }
>
> It's very handy to remember that 'use' is just 'require' and
> 'import' in
> a 'BEGIN' block.
right, but we're talking about idioms here. I feel kinda empty sometimes
because I can't use 'no' the same way I can use 'use' when it comes to
versioning. not to mention that it seems awfully snobbish (well, this is
perl ;) to assume that the next version of something is the most important
aspect of the software, especially as apache, mod_perl, and perl all go into
major syntax and behavior revisions...
>
> That said, it seems like it should be easy to implement the construct
> you originally wanted, and it would be generally useful.
:)
I started poking around toke.c and the pp stuff, but all of that is way
beyond my humble abilities...
--Geoff
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]