470,604 Members | 2,121 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,604 developers. It's quick & easy.

Does perl support in/out parameter subroutine?

Hi,

I am quite new to perl development and have a question very stupid
question. I hope that someone can help me.

Does perl support in/out parameter subroutine? Like in C/C++, we have
a function callee:

a(&b); // variable b value will be change in function a.
Jul 19 '05 #1
1 2132
Hon Seng Phuah wrote:
Does perl support in/out parameter subroutine? Like in C/C++, we have
a function callee:

a(&b); // variable b value will be change in function a.


"In/out parameter", well, I've never heard that term before, but I am
guessing you mean call-by-reference or call-by-value-return.
Yes, Perl does support call by reference. See "perldoc perlreftut" for an
introduction how to handle references.

jue
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Xah Lee | last post: by
3 posts views Thread by Wayne Folta | last post: by
5 posts views Thread by Bob MacBob | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.