Re: Including externally-defined constants

2006-07-21 Thread A. Pagaltzis
* David Landgren [EMAIL PROTECTED] [2006-07-21 11:30]: My only regret is that the Cuse constant {} construct only became legal in 5.8, and I don't think the tradeoff between the admittedly remarkable ease of use of this compared to cutting off 5.5, 5.6 is worthwhile. Well you can easily do

Re: Including externally-defined constants

2006-07-20 Thread Philippe BooK Bruhat
Le jeudi 20 juillet 2006 à 02:41, A. Pagaltzis écrivait: * Philippe BooK Bruhat [EMAIL PROTECTED] [2006-07-19 22:10]: '=cut'; =pod [...snip...] =cut Damn, what a cool hack! That's exactly what I thought when I first saw it. :-) -- Philippe BooK Bruhat

Re: Including externally-defined constants

2006-07-20 Thread A. Pagaltzis
* Philippe BooK Bruhat [EMAIL PROTECTED] [2006-07-20 08:40]: Le jeudi 20 juillet 2006 à 02:41, A. Pagaltzis écrivait: * Philippe BooK Bruhat [EMAIL PROTECTED] [2006-07-19 22:10]: '=cut'; =pod [...snip...] =cut Damn, what a cool hack! That's exactly

Including externally-defined constants

2006-07-19 Thread David Landgren
Authors, I have a design issue with a module I'm writing. I posted a question on Perlmonks a while back and got nothing useful, which perhaps indicates that the question was poorly phrased. So I'll try again here. I have a series of associations in a file: FOO 1 BAR 2 QUUX 3 It's easy

Re: Including externally-defined constants

2006-07-19 Thread A. Pagaltzis
* David Landgren [EMAIL PROTECTED] [2006-07-19 13:40]: The problem is that these associations are private to the XS and Perl module. The client code does not need to know about them, and in fact shouldn't. So I don't want client code to know the file exists, and people won't go around trying

Re: Including externally-defined constants

2006-07-19 Thread Philippe BooK Bruhat
Le mercredi 19 juillet 2006 à 13:59, A. Pagaltzis écrivait: * David Landgren [EMAIL PROTECTED] [2006-07-19 13:40]: The problem is that these associations are private to the XS and Perl module. The client code does not need to know about them, and in fact shouldn't. So I don't want client

Re: Including externally-defined constants

2006-07-19 Thread A. Pagaltzis
* Philippe BooK Bruhat [EMAIL PROTECTED] [2006-07-19 22:10]: '=cut'; =pod [...snip...] =cut Damn, what a cool hack! Regards, -- #Aristotle *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(,$\/, )[defined wantarray]/e;$1}; Just-another-Perl-hacker;