Splitting colon delimited file in sub

2004-08-12 Thread William Paoli
What is this doing? am I on the right track? I want to populate this into a hash after splitting it: sub data_file{ open FILE, "colon-delimted.txt"; while (my $line = ) { $line = ($driver,$sponsor,$owner,$chief,$car,$bio,$team) = split /:/, @_; } } _

Assignment for Perl Class- hurting my brain

2004-08-08 Thread William Paoli
Im not looking to cheat, just a push in the right direction. This is assignment has to do with objects, classes, packages, classes. There is a text file that is comma delimited that we will have to get data from. The methods and what they will do are all layed out for us. I am stuck on creating