May 21, 2004 #1 Alphabin Programmer Dec 8, 2002 119 CA I want to select elements from x to y in the array. Right now, the code I have selects x and y Code: foreach my $Results (@records[red][$first,$last][/red]) { print "$Results \n" } Thank you in advance
I want to select elements from x to y in the array. Right now, the code I have selects x and y Code: foreach my $Results (@records[red][$first,$last][/red]) { print "$Results \n" } Thank you in advance
May 21, 2004 #2 toolkit Programmer Aug 5, 2001 771 GB How about: Code: foreach my $Results (@records[$first..$last]) { print "$Results \n" } Cheers, Neil Upvote 0 Downvote