in reply to Re: head of list + rest of list
in thread head of list + rest of list

You left out "C programmer":
/\* how are we supposed to declare the size of variables again? */; my $head; /\* scalar (could be number OR string) */; my @tail; /\* array of scalars (could be numbers or strings, and grows + dynamically) */; $head = $list[0]; /\* why isn't this @list[0] ? */; for (my $i = 1; $i <= $#list; $i++) { $tail[$i - 1] = $list[$i]; }

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.