* David Landgren <[EMAIL PROTECTED]> [2006-07-21 11:30]: > My only regret is that the C<use 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 without the hashref syntax, the code just ends up looking busier. BEGIN { my %const; use Pod::Constants -trim => 1, constants => \%const; require constant; constant->import( $_ => $const{ $_ } ) for keys %const; } Regards, -- #Aristotle *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}; &Just->another->Perl->hacker;