in reply to Re: Re: Re: Enforcing formal arguments at compile time?
in thread Enforcing formal arguments at compile time?
Am I wrong?
Yes, you are wrong.
foo() is called with a single scalar argument which is precisely equal to scalar @ary or in other words the number of elements in @ary rather than a ref to it. I suggest you might like to 1) run the sample code where we print shift in foo and 2) follow the links I presented to learn more. I have a fair handle on scalar and array context BTW
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:^5 Enforcing formal arguments at compile time?
by pdcawley (Hermit) on May 03, 2002 at 15:52 UTC |