Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: Comments and suggestions on new module

by LTjake (Prior)
on Sep 19, 2007 at 01:10 UTC ( #639780=note: print w/replies, xml ) Need Help??

in reply to Re^2: Comments and suggestions on new module
in thread Comments and suggestions on new module

package X; our $PREF; sub new { bless {}, $PREF; } package A; sub foo { print __PACKAGE__; } package B; sub foo { print __PACKAGE__; } package main; $X::PREF = 'B'; my $o = X->new; $o->foo;



You can change $X::PREF = line to 'A' and it will print A.

"Go up to the next female stranger you see and tell her that her "body is a wonderland."
My hypothesis is that she’ll be too busy laughing at you to even bother slapping you.
" (src)

Replies are listed 'Best First'.
Re^4: Comments and suggestions on new module
by cosmicperl (Chaplain) on Sep 20, 2007 at 14:33 UTC
    I see. I update with this style in my next release, glad I didn't add to many more features now.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://639780]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2018-06-22 16:15 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.