in reply to just how special are $a and $b these days?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: just how special are $a and $b these days?
by davidnicol (Acolyte) on Mar 04, 2010 at 19:37 UTC | |
by BrowserUk (Patriarch) on Mar 04, 2010 at 19:53 UTC | |
by sauoq (Abbot) on Mar 04, 2010 at 22:31 UTC | |
by BrowserUk (Patriarch) on Mar 04, 2010 at 23:36 UTC |