On Aug 8, 2004, at 2:24 AM, William Paoli wrote:

Im not looking to cheat, just a push in the right
direction.

It's hard form me to help you much, without showing code. And of course, if I use something you're teacher hasn't taught yet...


Still, I'll try to give a hint or two.

[snip]

The field format of the file is structured like this:
"Car Number":"Driver Name":"Sponsor":"Owner":"Crew
Chief":"Car Make":"Mini Biography":"Team Name"

I couldn't tell, are you struggling with this part?

[snip]

An attribute is simply a key/value pair in the anonymous
hash that makes up your object.

The above sentence from the specification explains your problem.

package Nascar;

sub new{
        my $obj = {};

"just a key/value pair in the anonymous hash..."

        my $obj = { Title => 'Whatever' };

$obj => {Title} =""; #Is this initilizing the
attribute?

bless $obj;

}

I dont know why I am just not getting this stuff.
Please help me.

I hope that helps go forward again. Good luck.

James

P.S.  Never any shame in asking the teacher for some one-on-one help.


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to