Bryan R Harris wrote: > > I remember from my C++ class that when you pass arguments to subroutines you > can pass them either as a pointer to the real variable (so you modify the > original if you change it), or as a copy (which you can change all you want > and not affect the original). > > Is there a perl equivalent of both of those two concepts? > > - B > > >
perldoc perlsub "Sort of" is the short answer. Perl uses a sort of "smart" pass-by-reference. But unless you pass explicit references then if you assign the arguments to named variables then you have pass-by-value. The details are best found in the above docs. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>