On 12/20/07, Andy Dixon <[EMAIL PROTECTED]> wrote: > sub test($) {
Subroutine prototypes, like "($)" here, generally cause more harm than good, alas. Most programmers should avoid using them in most cases. > my $data = @_; You're using the "name" of the array in scalar context; this gives the number of elements. From the way you're using $data, you probably wanted to use list context to get the actual element: my($data) = @_; > RETURN ($data); Perl is a case-sensitive language, so the return operator must not be capitalized. If you've seen RETURN like that in someone else's code, that's a subroutine call; presumably one that does some special kind of return operation other than the standard one. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/