develooper Front page | perl.perl5.porters | Postings from October 2003

Re: Problem with attributes not running from do()

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
October 6, 2003 00:31
Subject:
Re: Problem with attributes not running from do()
Message ID:
20031006092523.5e7a287f.rgarcia@hexaflux.com
Daisuke Maki wrote:
> The only problem with this is that the code that intended to use this
> attribute is sourced in via do(). And code included from the likes of
> do() do not trigger CHECK and INIT blocks to be run. Yikes.

I'm not sure I fully understand your problem. Why not putting your code
in a BEGIN block at the end of the file you're sourcing via do() ?

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