develooper Front page | perl.fwp | Postings from July 2006

Re: Including externally-defined constants

From:
A. Pagaltzis
Date:
July 20, 2006 16:18
Subject:
Re: Including externally-defined constants
Message ID:
20060720231845.GW2885@klangraum
* Philippe "BooK" Bruhat <philippe.bruhat@free.fr> [2006-07-20 08:40]:
> Le jeudi 20 juillet 2006 à 02:41, A. Pagaltzis écrivait:
> >* Philippe "BooK" Bruhat <philippe.bruhat@free.fr> [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. :-)

I just abused it further, check it out:
http://www.perlmonks.org/index.pl?node_id=562735

Regards,
-- 
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About