On Jul 1, Rob Benton said:

>     $rows{$fields[2]} = [ ($fields[3]..$fields[-1]) ];

You're doing two things wrong:  the '..' operator needs to be INSIDE the
subscript.

  @fields[$lower .. $upper]

The other thing is that you can't do a range like that.  If you want to
get the elements from [3] to the end, you have to do [3 .. $#fields]:

  @fields[3 .. $#fields]

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
CPAN ID: PINYAN    [Need a programmer?  If you like my work, let me know.]
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


-- 
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