From: Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> > On Jun 12, Elias Assmann said: > >So Perl passes subroutine arguments by reference? I thought they > >would be copies in the first place... > > Don't say pass-by-reference, since "reference" means something > entirely different in Perl. It's pass-by-alias. $_[0] is aliased to > the first argument you sent to the function.
Well ... it's true that the $_[0] is not a reference to the first parameter, but an alias. But that's the same other languages that support call-by-reference do. (With the only difference that they seldom allow you to use a constant as a by-ref parameter.) C doesn't really support call-by-ref. It forces you to create a pointer and then passes that pointer by-value. IMHO of course, Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]