Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

chaoticset (2105)

chaoticset
  (email not shown publicly)
http://chaoticset.perlmonk.org/
AOL IM: chaoticset23 (Add Buddy, Send Message)
Yahoo! ID: illuminatus_foil (Add User, Send Message)

JAPH. (That's right -- I'm not Really Inexperienced any more.)

I'm not just here, I'm here [perlmonks.org], and here [javajunkies.org] too, I ramble randomly in my philosophical blog [blogspot.com] and my other blog [blogspot.com]. Soon I'll come in a convenient six-pack.

Journal of chaoticset (2105)

Tuesday February 12, 2002
07:26 PM

Brain Block

[ #2830 ]
I faithfully attempted to fiddle with the sub set{} that Pudge gave me in earlier commentary. The function
sub weight {
my ($self, $data) = @_;
$self->{_data}{"weight"}=$data;
}

works, it would seem, because if I use the
sub get {
my ($self, $key) = @_;
return $self->{_data}{$key};
}
like so: $neuron->get("weight"); then it works.

This makes me think I can just call an array @neurons, and then create new instances and dump them into said array. Or, even, create them as hash elements, where the name is the name and the value is the object instance.

Feh. I don't even know if I'm using most of these terms properly.

I could use a sandwich and some iced tea.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.