Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Comment on

Are you sure that's the code you ran? It should work. And it works for me.
>perl superclass hello make a window

use Object::Tiny qw(dummy);
can be written as
use Object::Tiny;
but not as
use Object::Tiny qw( ); or
use Object::Tiny ( );
You would get the error you showed if you did one of the latter two.

Also, if you have no members, you can use
$ui = 'UI'; instead of $ui = UI->new();, and
$ui = 'UI::Graphical'; instead of $ui = UI::Graphical->new();.
However, you'll probably need some members, so you might as well continue the way you are going.

In reply to Re^3: Eliminating conditional code for GUI and text-mode operation by ikegami
in thread Eliminating conditional code for GUI and text-mode operation by gnosti

and:  <code> code here </code>

  • Please read these before you post! —
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    As of 2015-10-06 15:39 GMT
    Find Nodes?
      Voting Booth?

      Does Humor Belong in Programming?

      Results (154 votes), past polls