|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Re: (jeffa) Re: A better mod (%) operator?by hossman (Parson) |
| on Jul 09, 2002 at 02:38 UTC ( #180384=note: print w/ replies, xml ) | Need Help?? |
|
The problem isn't with wantarry, it's something more low level then that, observe a slightly modified version that doesn't use wantarray...
This still generates "30" for 90/30, regardless of
context ...
Update: My bad, I totally spaced out on the fact that lists in scalar context evaluate to the last element... i was thinking of it just like an array.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||