in reply to Re^4: Spinning cursor while waiting for search/copy process to be finished
in thread Spinning cursor while waiting for search/copy process to be finished
A function is free to do in-place modifications of @_ and change its caller's values.upcase_in($v1, $v2); # this changes $v1 and $v2 sub upcase_in { for (@_) { tr/a-z/A-Z/ } }
Scalars are already passed by reference, so you can modify scalar arguments without using typeglob mechanism (skipped) by referring explicitly to $_[0] etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Spinning cursor while waiting for search/copy process to be finished
by Ingvar (Novice) on Mar 26, 2013 at 06:03 UTC | |
|
Re^6: Spinning cursor while waiting for search/copy process to be finished
by Anonymous Monk on Mar 26, 2013 at 12:19 UTC | |
by aitap (Curate) on Mar 26, 2013 at 17:02 UTC | |
by Ingvar (Novice) on Mar 27, 2013 at 10:52 UTC |