Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: A simple import() for those special moments (bugfixes)

by ihb (Deacon)
on Jan 20, 2003 at 12:20 UTC ( #228329=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        package Foo::foo_bar;
      use Foo;
      print $foo_bar::bar; # 'BAR'!
  2. or download this
        sub import {
            my $caller = caller() . '::';
            *{"$caller$_"} = *{__PACKAGE__ . "::$_"}
                for grep !/::$/ && /$exported/, keys %{__PACKAGE__ . '::'}
  3. or download this
      use Exporter::Pattern qr/PATTERN/;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://228329]
[Tanktalus]: SwaJime: wouldn't status & status < 13 be true if status was 0?
[SwaJime]: I thought 0 was false, and false AND anything would be false ...
[SwaJime]: unless & is higher precedence than <
[SwaJime]: couldn't find bitwise in precedence list for sybase
[SwaJime]: I bet that is why ... and that makes it to be I think terribly written code :-|

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-08-22 18:07 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (338 votes). Check out past polls.