in reply to TIMTOWTDI =/=> 0222
in thread "Perl is read-only!"

The lack of formal parameters (yes, I know they exist now, but most people don't use them) leads to things like sub mult{$_[0]*$_1}.
Huh?!? Do they exist now? Aren't you talking Perl6 by any chance? If so, then I wouldn't say "they exist now"...

Incidentally one of the things I like about Perl (but then I just love it to the bone in any case!) is how its simple parameter passing mechanism can be put to mimic so many different styles, e.g. by reference, by value, named.

Update: Incidentally I recommend that when you change the subject of a node within a thread you include the previous one. I've been bit in the neck by this myself. See my own post at Q re nodes' subjects.

Replies are listed 'Best First'.
Re^2: TIMTOWTDI =/=> 0222
by kaif (Friar) on Jun 07, 2005 at 12:45 UTC

    Yup, sorry, I think you're absolutely right. I really don't know why I was absolutely blanking, but I thought I remembered seeing formal parameter lists somewhere, and I guess that was Perl 6. Indeed, perlsub mentions "Perl does not have named formal parameters."

    I guess you could change my comment, if you want, to the fact that it's difficult to pass arrays and hashes into functions (with the canonical solution being references and the less typical one prototypes). Thanks for the heads-up.

Re^2: TIMTOWTDI =/=> 0222
by kaif (Friar) on Jun 07, 2005 at 12:53 UTC

    Thanks for the title comment, too. Whenever I reply to an email and change the subject, I usually change the subject to "FOO (was Re: BAR)". I actually thought about doing it here, but I guess I misjudged when I thought that that would "clutter" the node. In the future, I'll do that; I think I'll let this stay for now.