Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: perl oop concept

by tobyink (Abbot)
on Dec 04, 2012 at 07:07 UTC ( #1007022=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    package a;
    my $obj = new a ();
  2. or download this
    my $obj = "a"->new();
  3. or download this
    $obj ->{$self}{avalue}=10;
    print $obj->{$self}{avalue};
  4. or download this
      package a;
    my $obj = "a"->new();
    $obj->avalue(10);           # set
    print $obj->avalue, "\n";   # get
  5. or download this
      package a;
    my $obj = "a"->new();
    $obj->avalue(10);           # set
    print $obj->avalue, "\n";   # get

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007022]
[Discipulus]: practical use for?
[marto]: finding bugs, either in the CPU layer or hypervisor, finding undocumented instructions
[zentara]: are you talikng about perf?
[Discipulus]: i miss what an undocumented instructions can be, and how can be used
[zentara]: perf
[marto]: X86_instruction_li stings

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-07-28 12:02 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (428 votes). Check out past polls.