Re: Confused by a complex data structure

2002-12-15 Thread John W. Krahn
Rob Richardson wrote: > > Hello again. Hello, > None of this is working. > > John Krahn suggested: > > push @{$trainsList{$trainDate}}, @trainData; > (note the curly brackets on the outside). This gave me the following > error: > > Can't locate object method "trainList" via package "train

Re: Confused by a complex data structure

2002-12-15 Thread Rob Richardson
Hello again. None of this is working. John Krahn suggested: > push @{$trainsList{$trainDate}}, @trainData; (note the curly brackets on the outside). This gave me the following error: Can't locate object method "trainList" via package "trainDate" (perhaps you forgot to load "trainDate"?) at

Re: Confused by a complex data structure

2002-12-15 Thread John W. Krahn
Rob Richardson wrote: > > Greetings! Hello, > I am trying to write a Perl script for the Cuyahoga Valley Scenic > Railroad, so that volunteers can sign up to work on trains. The > schedule file has comma-separated lines that have the date of the > train, the name of the train, and the names of

RE: Confused by a complex data structure

2002-12-14 Thread Beau E. Cox
Hi - Tell perl it really is an array: push @( $trainsList{$trainDate} }, $trainRef; ^^ ^ Aloha => Beau. -Original Message- From: Rob Richardson [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: Confused b