in reply to Re^2: Can It Be Written In Base X With Only 1s And 0s
in thread Can It Be Written In Base X With Only 1s And 0s
What is interesting is that on line 17, $_ is 2 different entities:
Yes, but both are distinct at their point of use.
It's a trick -- if you want to call it that -- that I learned a long time ago from Merlyn. Same variable name but two different scopes in a single line.
The value from the outer for loop is passed into gen() and that must be executed before the list is available to the inner for loop, so there is no conflict.
|
|---|