Think about Loose Coupling | |
PerlMonks |
Re: Re: Re: random elements from array - new twistby jsprat (Curate) |
on Nov 05, 2002 at 23:52 UTC ( [id://210609]=note: print w/replies, xml ) | Need Help?? |
It got me too (see Re: Re: Re: Re: random elements from array - new twist)... It's a matter of precedence. Have a look at how perl parses it:
The '- $_' is part of the argument to rand, not the assignment to $a.
In Section
Seekers of Perl Wisdom
|
|