develooper Front page | perl.module-authors | Postings from October 2007

Re: (OT) Re: S/SA/SAPER/relative-0.02.tar.gz (feature request)

Thread Previous | Thread Next
From:
A. Pagaltzis
Date:
October 9, 2007 01:32
Subject:
Re: (OT) Re: S/SA/SAPER/relative-0.02.tar.gz (feature request)
Message ID:
20071009083244.GL23926@klangraum
* Smylers <Smylers@stripey.com> [2007-10-09 10:25]:
> Well don't have them then -- put the assignment in the use
> statement, which is run at BEGIN time anyway:
> 
>   use Test::More tests => 1;
>   my $CLASS;
>   use ok $CLASS = 'DateTime';

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

Thread Previous | Thread Next


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