how do I load data into $a and $b so that a sort comparator defined in a distant module can see them?
I'm not sure exactly what you are trying to do. Can you explain it in pseudocode? There is no problem with having a comparator function defined in a "distant module". The $a and $b variables are package variables. If you absolutely had to set them from some other module (which seems unlikely or at least unlikely to be a good practice) you could specifically reference the package that the sort comparator function is defined in.
In reply to Re: just how special are $a and $b these days?
by sauoq
in thread just how special are $a and $b these days?
by davidnicol
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |