By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,906 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,906 IT Pros & Developers. It's quick & easy.

Does perl support in/out parameter subroutine?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.